Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001281/0.001281, allocations: 118.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 197.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.492/1.492, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 63.89 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2519, allocations: 50.54 MB / 408.7 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004125/0.2561, allocations: 2.542 MB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002235/0.2584, allocations: 1.123 MB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002192/0.2586, allocations: 4 kB / 412.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000324/0.259, allocations: 67.42 kB / 412.5 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005901/0.2596, allocations: 182 kB / 412.7 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004674/0.2601, allocations: 179.2 kB / 412.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006378/0.2607, allocations: 0.518 MB / 413.4 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002207/0.2609, allocations: 92.91 kB / 413.4 MB, free: 12.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000404/0.2614, allocations: 231.4 kB / 413.7 MB, free: 12.63 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003952/0.2618, allocations: 279.1 kB / 413.9 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.39e-05/0.2619, allocations: 48 kB / 414 MB, free: 12.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002886/0.2621, allocations: 135.9 kB / 414.1 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001712/0.2623, allocations: 119.6 kB / 414.2 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002118/0.2626, allocations: 195.1 kB / 414.4 MB, free: 11.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007222/0.2633, allocations: 0.5479 MB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.633e-06/0.2633, allocations: 0 / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.2633, allocations: 3.938 kB / 415 MB, free: 11.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.236e-05/0.2633, allocations: 0 / 415 MB, free: 11.32 MB / 334.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.001448/0.2648, allocations: 0.7126 MB / 415.7 MB, free: 10.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.2648, allocations: 12.03 kB / 415.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.604e-05/0.2649, allocations: 66.72 kB / 415.8 MB, free: 10.47 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004188/0.2653, allocations: 64.67 kB / 415.8 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006045/0.266, allocations: 323.8 kB / 416.2 MB, free: 10.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001445/0.2661, allocations: 92.61 kB / 416.2 MB, free: 9.953 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.217e-05/0.2662, allocations: 32.33 kB / 416.3 MB, free: 9.922 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009172/0.2671, allocations: 416.9 kB / 416.7 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/0.2672, allocations: 3.984 kB / 416.7 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.701e-05/0.2672, allocations: 20 kB / 416.7 MB, free: 9.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.2672, allocations: 8 kB / 416.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001047/0.2683, allocations: 470.3 kB / 417.2 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001926/0.2702, allocations: 1.001 MB / 418.2 MB, free: 7.957 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009246/0.2712, allocations: 392.4 kB / 418.6 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005034/0.2717, allocations: 238.1 kB / 418.8 MB, free: 7.328 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.677e-05/0.2717, allocations: 8.422 kB / 418.8 MB, free: 7.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.791e-05/0.2718, allocations: 39 kB / 418.8 MB, free: 7.273 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.926e-06/0.2718, allocations: 0 / 418.8 MB, free: 7.273 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005682/0.2775, allocations: 2.156 MB / 421 MB, free: 5.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.889e-05/0.2776, allocations: 85.67 kB / 421.1 MB, free: 4.906 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000379/0.278, allocations: 269 kB / 421.3 MB, free: 4.633 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.759e-05/0.278, allocations: 41.69 kB / 421.4 MB, free: 4.586 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.2781, allocations: 137.2 kB / 421.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001987/0.2784, allocations: 202.4 kB / 421.7 MB, free: 4.25 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001734/0.2785, allocations: 90.23 kB / 421.8 MB, free: 4.156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.2787, allocations: 338.8 kB / 422.1 MB, free: 3.816 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004756/0.2792, allocations: 193 kB / 422.3 MB, free: 3.629 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005172/0.2797, allocations: 240.6 kB / 422.6 MB, free: 3.383 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008771/0.2806, allocations: 388.4 kB / 422.9 MB, free: 3 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.634e-06/0.2806, allocations: 3.938 kB / 422.9 MB, free: 2.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001383/0.282, allocations: 0.6058 MB / 423.5 MB, free: 2.379 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.919e-05/0.282, allocations: 7.938 kB / 423.5 MB, free: 2.371 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.114e-06/0.2821, allocations: 4 kB / 423.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008627/0.2829, allocations: 302.6 kB / 423.8 MB, free: 2.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000332/0.2833, allocations: 63.89 kB / 423.9 MB, free: 2.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004517/0.2878, allocations: 2.951 MB / 426.9 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003745/0.2882, allocations: 32 kB / 426.9 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.14e-05/0.2883, allocations: 23.92 kB / 426.9 MB, free: 14.86 MB / 350.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.0002433/0.2885, allocations: 169.7 kB / 427.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.463e-05/0.2886, allocations: 31.81 kB / 427.1 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001173/0.2888, allocations: 43.62 kB / 427.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.2888, allocations: 11.98 kB / 427.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2888, allocations: 0 / 427.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.2888, allocations: 0 / 427.2 MB, free: 14.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002442/0.2912, allocations: 1.297 MB / 428.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.2913, allocations: 0 / 428.5 MB, free: 13.25 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003537/0.2916, allocations: 71.94 kB / 428.5 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007649/0.2924, allocations: 296.5 kB / 428.8 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.319e-05/0.2925, allocations: 15.98 kB / 428.8 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004275/0.2967, allocations: 2.839 MB / 431.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2968, allocations: 0 / 431.7 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00207/0.2988, allocations: 0.9623 MB / 432.6 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002361/0.2991, allocations: 156.9 kB / 432.8 MB, free: 8.734 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.031e-05/0.2992, allocations: 19.88 kB / 432.8 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003214/0.2995, allocations: 31.97 kB / 432.8 MB, free: 8.684 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001974/0.2997, allocations: 68.33 kB / 432.9 MB, free: 8.613 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.715e-05/0.2998, allocations: 23.92 kB / 432.9 MB, free: 8.59 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002662/0.3, allocations: 200.5 kB / 433.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3001, allocations: 4.062 kB / 433.1 MB, free: 8.391 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00066/0.3007, allocations: 147.9 kB / 433.3 MB, free: 8.246 MB / 350.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.003782/0.3045, allocations: 1.783 MB / 435.1 MB, free: 6.543 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001615/0.3062, allocations: 0.6955 MB / 435.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.3062, allocations: 0 / 435.8 MB, free: 5.836 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009312/0.3072, allocations: 483.7 kB / 436.2 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005273/0.3077, allocations: 49.88 kB / 436.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006766/0.3145, allocations: 3.828 MB / 440.1 MB, free: 1.379 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.315, allocations: 0.7968 MB / 440.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002841/0.3153, allocations: 74.92 kB / 441 MB, free: 484 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002081/0.3155, allocations: 111.4 kB / 441.1 MB, free: 372 kB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.3155, allocations: 4 kB / 441.1 MB, free: 368 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04717/0.3627, allocations: 11.62 MB / 452.7 MB, free: 4.902 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.84, allocations: 16.81 kB / 452.7 MB, free: 4.887 MB / 366.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_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