Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001261/0.001261, allocations: 114.4 kB / 17.73 MB, free: 5.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 187.1 kB / 18.66 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001674/0.001674, allocations: 51.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0935/0.09519, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003987/0.09922, allocations: 2.424 MB / 377.1 MB, free: 2.656 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001909/0.1012, allocations: 1.011 MB / 378.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001358/0.1013, allocations: 4 kB / 378.1 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002254/0.1016, allocations: 47.52 kB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005059/0.1021, allocations: 167 kB / 378.3 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003719/0.1025, allocations: 179.7 kB / 378.5 MB, free: 1.246 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005121/0.103, allocations: 474.4 kB / 378.9 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002045/0.1032, allocations: 92.89 kB / 379 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002993/0.1035, allocations: 207.3 kB / 379.2 MB, free: 496 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003529/0.1039, allocations: 247.2 kB / 379.5 MB, free: 248 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.062e-05/0.104, allocations: 36 kB / 379.5 MB, free: 212 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002441/0.1042, allocations: 127.8 kB / 379.6 MB, free: 84 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1782/0.2824, allocations: 108 kB / 379.7 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002687/0.2827, allocations: 180.7 kB / 379.9 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007094/0.2834, allocations: 0.4894 MB / 380.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.2834, allocations: 0.8906 kB / 380.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2835, allocations: 1.375 kB / 380.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.814e-06/0.2835, allocations: 0 / 380.4 MB, free: 9.691 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001179/0.2847, allocations: 0.6854 MB / 381.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.23e-05/0.2847, allocations: 9.719 kB / 381.1 MB, free: 9.223 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.2e-05/0.2848, allocations: 67.98 kB / 381.2 MB, free: 9.184 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003081/0.2851, allocations: 56.23 kB / 381.2 MB, free: 9.164 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004867/0.2856, allocations: 324.9 kB / 381.5 MB, free: 8.934 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001131/0.2857, allocations: 93.3 kB / 381.6 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.212e-05/0.2858, allocations: 29.94 kB / 381.6 MB, free: 8.871 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008085/0.2866, allocations: 415 kB / 382.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.991e-05/0.2866, allocations: 1.828 kB / 382.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.2867, allocations: 12.56 kB / 382.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.005e-05/0.2867, allocations: 6.75 kB / 382.1 MB, free: 8.809 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001169/0.2879, allocations: 476.2 kB / 382.5 MB, free: 8.805 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.2897, allocations: 0.9698 MB / 383.5 MB, free: 8.461 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008279/0.2905, allocations: 414.9 kB / 383.9 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000478/0.291, allocations: 233.5 kB / 384.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.155e-05/0.2911, allocations: 8.156 kB / 384.1 MB, free: 8.426 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.91e-05/0.2911, allocations: 38.86 kB / 384.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.036e-06/0.2911, allocations: 1.078 kB / 384.2 MB, free: 8.383 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.004968/0.2961, allocations: 2.174 MB / 386.4 MB, free: 7.457 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.2961, allocations: 83.67 kB / 386.4 MB, free: 7.363 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003157/0.2964, allocations: 262.3 kB / 386.7 MB, free: 7.219 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.746e-05/0.2965, allocations: 36.14 kB / 386.7 MB, free: 7.18 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.598e-05/0.2966, allocations: 139 kB / 386.9 MB, free: 7.055 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001161/0.2967, allocations: 191.7 kB / 387.1 MB, free: 6.91 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001534/0.2969, allocations: 92.81 kB / 387.1 MB, free: 6.859 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.555e-05/0.2969, allocations: 338.2 kB / 387.5 MB, free: 6.535 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004487/0.2974, allocations: 198.5 kB / 387.7 MB, free: 6.473 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004685/0.2979, allocations: 244.3 kB / 387.9 MB, free: 6.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008179/0.2987, allocations: 395.2 kB / 388.3 MB, free: 6.215 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2987, allocations: 1.188 kB / 388.3 MB, free: 6.215 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001218/0.2999, allocations: 0.6138 MB / 388.9 MB, free: 5.965 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.3, allocations: 10.28 kB / 388.9 MB, free: 5.961 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.173e-06/0.3, allocations: 4.656 kB / 388.9 MB, free: 5.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007363/0.3007, allocations: 254.8 kB / 389.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003236/0.3011, allocations: 63.95 kB / 389.2 MB, free: 5.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00351/0.3046, allocations: 2.938 MB / 392.2 MB, free: 3.691 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003419/0.3049, allocations: 28.89 kB / 392.2 MB, free: 3.684 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.76e-05/0.305, allocations: 19.39 kB / 392.2 MB, free: 3.68 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0001834/0.3052, allocations: 166.1 kB / 392.4 MB, free: 3.531 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.646e-05/0.3053, allocations: 36.62 kB / 392.4 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.616e-05/0.3054, allocations: 51.09 kB / 392.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.061e-06/0.3054, allocations: 5.219 kB / 392.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.04e-06/0.3054, allocations: 5.25 kB / 392.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.3054, allocations: 2.812 kB / 392.5 MB, free: 3.473 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002106/0.3075, allocations: 1.266 MB / 393.7 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.209e-06/0.3075, allocations: 1.062 kB / 393.7 MB, free: 2.805 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003206/0.3079, allocations: 67.36 kB / 393.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006581/0.3085, allocations: 244.8 kB / 394.1 MB, free: 2.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.204e-05/0.3086, allocations: 10.09 kB / 394.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003323/0.3119, allocations: 2.855 MB / 396.9 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.3119, allocations: 7.219 kB / 396.9 MB, free: 0.5742 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001702/0.3137, allocations: 0.9557 MB / 397.9 MB, free: 116 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.3139, allocations: 155.8 kB / 398 MB, free: 0 / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001143/0.314, allocations: 15.03 kB / 398 MB, free: 16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.3143, allocations: 33.11 kB / 398.1 MB, free: 15.98 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.3145, allocations: 69.58 kB / 398.1 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.81e-05/0.3146, allocations: 17.42 kB / 398.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002638/0.3148, allocations: 199.1 kB / 398.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3148, allocations: 4.062 kB / 398.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006839/0.3155, allocations: 155.1 kB / 398.5 MB, free: 15.83 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002474/0.318, allocations: 1.553 MB / 400.1 MB, free: 14.83 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001566/0.3196, allocations: 0.7027 MB / 400.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.3196, allocations: 1.031 kB / 400.8 MB, free: 14.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008921/0.3205, allocations: 484.4 kB / 401.2 MB, free: 14.26 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.321, allocations: 44.31 kB / 401.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006695/0.3277, allocations: 3.838 MB / 405.1 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005173/0.3282, allocations: 0.7992 MB / 405.9 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000233/0.3285, allocations: 62.97 kB / 406 MB, free: 11.27 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001927/0.3287, allocations: 101.1 kB / 406.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3287, allocations: 0 / 406.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04434/0.373, allocations: 10.95 MB / 417 MB, free: 4.082 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/12.96, allocations: 7.906 kB / 417 MB, free: 4.074 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable gear.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv failed! " Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w