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.001558/0.001558, allocations: 106.5 kB / 17.73 MB, free: 5.363 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.001724/0.001724, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.304/1.304, 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.001264/0.001264, allocations: 47.94 kB / 328 MB, free: 3.844 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08701/0.08828, allocations: 46.62 MB / 374.6 MB, free: 5.113 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004092/0.09243, allocations: 2.435 MB / 377.1 MB, free: 2.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001953/0.09441, allocations: 1.015 MB / 378.1 MB, free: 1.641 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002451/0.09468, allocations: 4 kB / 378.1 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002809/0.09503, allocations: 51.5 kB / 378.1 MB, free: 1.586 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007295/0.09578, allocations: 159.1 kB / 378.3 MB, free: 1.43 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004597/0.09625, allocations: 183.6 kB / 378.5 MB, free: 1.25 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005828/0.09684, allocations: 470.5 kB / 378.9 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002123/0.09706, allocations: 92.89 kB / 379 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003876/0.09746, allocations: 207.3 kB / 379.2 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003927/0.09786, allocations: 247.2 kB / 379.5 MB, free: 256 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.551e-05/0.09797, allocations: 36 kB / 379.5 MB, free: 220 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002666/0.09824, allocations: 131.8 kB / 379.6 MB, free: 88 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1856/0.2838, allocations: 101 kB / 379.7 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004096/0.2843, allocations: 181.6 kB / 379.9 MB, free: 9.762 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001113/0.2854, allocations: 0.4914 MB / 380.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.504e-06/0.2854, allocations: 1.375 kB / 380.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2854, allocations: 0 / 380.4 MB, free: 9.699 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.187e-05/0.2855, allocations: 0 / 380.4 MB, free: 9.699 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.001829/0.2873, allocations: 0.6817 MB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.2874, allocations: 13.81 kB / 381.1 MB, free: 9.23 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.2875, allocations: 68.12 kB / 381.2 MB, free: 9.191 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003784/0.2879, allocations: 56.03 kB / 381.2 MB, free: 9.172 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005895/0.2885, allocations: 329.3 kB / 381.5 MB, free: 8.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001364/0.2886, allocations: 86.67 kB / 381.6 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.531e-05/0.2887, allocations: 34.02 kB / 381.7 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009283/0.2897, allocations: 415 kB / 382.1 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.586e-05/0.2897, allocations: 2.469 kB / 382.1 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.127e-05/0.2898, allocations: 11.62 kB / 382.1 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.748e-06/0.2898, allocations: 6.875 kB / 382.1 MB, free: 8.816 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001232/0.291, allocations: 475.5 kB / 382.5 MB, free: 8.812 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001974/0.293, allocations: 0.9731 MB / 383.5 MB, free: 8.469 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009064/0.2939, allocations: 413.4 kB / 383.9 MB, free: 8.441 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004858/0.2944, allocations: 230.7 kB / 384.1 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.2945, allocations: 9.547 kB / 384.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.2945, allocations: 39.59 kB / 384.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 2.806e-06/0.2945, allocations: 1.125 kB / 384.2 MB, free: 8.391 MB / 318.1 MB Notification: Performance of matching and sorting (n=55): time 0.005619/0.3001, allocations: 2.176 MB / 386.4 MB, free: 7.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.902e-05/0.3002, allocations: 84.12 kB / 386.4 MB, free: 7.402 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004287/0.3006, allocations: 262.1 kB / 386.7 MB, free: 7.258 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.886e-05/0.3007, allocations: 37.2 kB / 386.7 MB, free: 7.219 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.151e-05/0.3008, allocations: 130.9 kB / 386.9 MB, free: 7.102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.301, allocations: 195.1 kB / 387.1 MB, free: 6.949 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001934/0.3012, allocations: 93.8 kB / 387.2 MB, free: 6.898 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.885e-05/0.3013, allocations: 338.8 kB / 387.5 MB, free: 6.574 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004956/0.3018, allocations: 193 kB / 387.7 MB, free: 6.516 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005356/0.3023, allocations: 246 kB / 387.9 MB, free: 6.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000917/0.3033, allocations: 398.6 kB / 388.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.467e-06/0.3033, allocations: 0.75 kB / 388.3 MB, free: 6.254 MB / 318.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001388/0.3047, allocations: 0.6136 MB / 388.9 MB, free: 6.004 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.444e-05/0.3047, allocations: 10.22 kB / 388.9 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3047, allocations: 4.656 kB / 388.9 MB, free: 5.996 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008214/0.3056, allocations: 255.1 kB / 389.2 MB, free: 5.926 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003362/0.3059, allocations: 67.69 kB / 389.2 MB, free: 5.922 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004381/0.3103, allocations: 2.934 MB / 392.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003868/0.3107, allocations: 31.16 kB / 392.2 MB, free: 3.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.699e-05/0.3108, allocations: 22.19 kB / 392.2 MB, free: 3.719 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.0002357/0.311, allocations: 164.8 kB / 392.4 MB, free: 3.57 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001266/0.3112, allocations: 36.06 kB / 392.4 MB, free: 3.551 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.3113, allocations: 51.89 kB / 392.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.3113, allocations: 5.125 kB / 392.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.3113, allocations: 4.438 kB / 392.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3113, allocations: 3.844 kB / 392.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002486/0.3138, allocations: 1.264 MB / 393.8 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.3138, allocations: 1.188 kB / 393.8 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003336/0.3142, allocations: 65.55 kB / 393.8 MB, free: 2.844 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006953/0.3149, allocations: 244.2 kB / 394.1 MB, free: 2.773 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.491e-05/0.315, allocations: 13.91 kB / 394.1 MB, free: 2.766 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003529/0.3185, allocations: 2.849 MB / 396.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3185, allocations: 1.125 kB / 396.9 MB, free: 0.6133 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001875/0.3204, allocations: 0.9607 MB / 397.9 MB, free: 156 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002172/0.3206, allocations: 149 kB / 398 MB, free: 24 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001094/0.3207, allocations: 16.22 kB / 398 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003534/0.3211, allocations: 30.48 kB / 398.1 MB, free: 4 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002154/0.3213, allocations: 68.73 kB / 398.1 MB, free: 0 / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.673e-05/0.3214, allocations: 18.08 kB / 398.2 MB, free: 0 / 318.1 MB Notification: Performance of sorting global known variables: time 0.000369/0.3218, allocations: 206 kB / 398.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3218, allocations: 0 / 398.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008007/0.3226, allocations: 157.8 kB / 398.5 MB, free: 15.88 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.002553/0.3252, allocations: 1.563 MB / 400.1 MB, free: 14.88 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001678/0.3269, allocations: 0.7008 MB / 400.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.3269, allocations: 0 / 400.8 MB, free: 14.55 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001037/0.3279, allocations: 485.4 kB / 401.3 MB, free: 14.31 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000514/0.3285, allocations: 38.58 kB / 401.3 MB, free: 14.29 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007222/0.3357, allocations: 3.844 MB / 405.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005306/0.3363, allocations: 0.7976 MB / 405.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002642/0.3365, allocations: 68.5 kB / 406 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001991/0.3367, allocations: 99.27 kB / 406.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of SimCode: time 1.032e-06/0.3368, allocations: 0.9688 kB / 406.1 MB, free: 11.25 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03831/0.3751, allocations: 10.95 MB / 417 MB, free: 4.117 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.26, allocations: 7.844 kB / 417.1 MB, free: 4.109 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