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.001331/0.001331, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001284/0.001284, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.324/1.324, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 60.08 kB / 307 MB, free: 0.5742 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09409/0.09528, allocations: 50.54 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.00467/0.09999, allocations: 2.545 MB / 360.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002534/0.1026, allocations: 1.127 MB / 361.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003078/0.1029, allocations: 4 kB / 361.3 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003704/0.1033, allocations: 71.42 kB / 361.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007502/0.1041, allocations: 175.7 kB / 361.5 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005631/0.1047, allocations: 175.7 kB / 361.7 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000634/0.1053, allocations: 0.518 MB / 362.2 MB, free: 9.402 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002102/0.1055, allocations: 100.9 kB / 362.3 MB, free: 9.301 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004749/0.106, allocations: 223.3 kB / 362.5 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004539/0.1065, allocations: 275.1 kB / 362.8 MB, free: 8.812 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001056/0.1066, allocations: 40 kB / 362.8 MB, free: 8.773 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003561/0.107, allocations: 132 kB / 362.9 MB, free: 8.645 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.1071, allocations: 123.6 kB / 363.1 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002391/0.1074, allocations: 199.1 kB / 363.3 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006709/0.1081, allocations: 0.5377 MB / 363.8 MB, free: 7.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.503e-06/0.1081, allocations: 4 kB / 363.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1081, allocations: 0 / 363.8 MB, free: 7.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.1081, allocations: 4 kB / 363.8 MB, free: 7.781 MB / 302.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.001339/0.1095, allocations: 0.7079 MB / 364.5 MB, free: 7.027 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.1095, allocations: 8.031 kB / 364.5 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.738e-05/0.1096, allocations: 70.72 kB / 364.6 MB, free: 6.941 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004107/0.11, allocations: 56.53 kB / 364.6 MB, free: 6.887 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004416/0.1105, allocations: 319.3 kB / 365 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001334/0.1106, allocations: 92.61 kB / 365 MB, free: 6.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.46e-05/0.1107, allocations: 32.38 kB / 365.1 MB, free: 6.398 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000803/0.1115, allocations: 420.8 kB / 365.5 MB, free: 5.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.804e-05/0.1115, allocations: 4 kB / 365.5 MB, free: 5.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.05e-05/0.1116, allocations: 12 kB / 365.5 MB, free: 5.965 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.1116, allocations: 8 kB / 365.5 MB, free: 5.957 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001023/0.1126, allocations: 474.1 kB / 366 MB, free: 5.492 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001813/0.1144, allocations: 0.9969 MB / 367 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009436/0.1154, allocations: 396.4 kB / 367.4 MB, free: 4.043 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004855/0.1159, allocations: 222.1 kB / 367.6 MB, free: 3.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.067e-05/0.116, allocations: 12.42 kB / 367.6 MB, free: 3.812 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.304e-05/0.116, allocations: 39 kB / 367.6 MB, free: 3.766 MB / 302.1 MB Notification: Performance of pre-optimization done (n=49): time 5.31e-06/0.116, allocations: 3.984 kB / 367.6 MB, free: 3.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.005309/0.1213, allocations: 2.148 MB / 369.8 MB, free: 1.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.874e-05/0.1214, allocations: 89.66 kB / 369.9 MB, free: 1.395 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003233/0.1217, allocations: 272.9 kB / 370.1 MB, free: 1.125 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.368e-05/0.1218, allocations: 37.7 kB / 370.2 MB, free: 1.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.983e-05/0.1219, allocations: 137.1 kB / 370.3 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001372/0.122, allocations: 181.3 kB / 370.5 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001444/0.1222, allocations: 90.23 kB / 370.6 MB, free: 0.668 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001173/0.1223, allocations: 342.8 kB / 370.9 MB, free: 332 kB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004497/0.1227, allocations: 193 kB / 371.1 MB, free: 140 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.1559/0.2786, allocations: 242.5 kB / 371.3 MB, free: 20.17 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001005/0.2797, allocations: 381.8 kB / 371.7 MB, free: 20.15 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.2797, allocations: 0.5 kB / 371.7 MB, free: 20.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.00135/0.2811, allocations: 0.6098 MB / 372.3 MB, free: 20.11 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.394e-05/0.2811, allocations: 7.281 kB / 372.3 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.2811, allocations: 4.266 kB / 372.3 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008497/0.282, allocations: 299.1 kB / 372.6 MB, free: 20.1 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003331/0.2823, allocations: 76.3 kB / 372.7 MB, free: 20.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003643/0.286, allocations: 2.942 MB / 375.6 MB, free: 18.08 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003433/0.2863, allocations: 28.92 kB / 375.7 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.915e-05/0.2864, allocations: 19.33 kB / 375.7 MB, free: 18.07 MB / 302.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.0002069/0.2866, allocations: 162.1 kB / 375.8 MB, free: 17.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.339e-05/0.2867, allocations: 32.31 kB / 375.9 MB, free: 17.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.33e-05/0.2868, allocations: 52.03 kB / 375.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.2868, allocations: 5.5 kB / 375.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2868, allocations: 9.25 kB / 375.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.568e-05/0.2869, allocations: 3.141 kB / 375.9 MB, free: 17.86 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002252/0.2891, allocations: 1.295 MB / 377.2 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.508e-06/0.2891, allocations: 1.188 kB / 377.2 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003368/0.2895, allocations: 69.44 kB / 377.3 MB, free: 17.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007385/0.2902, allocations: 290.3 kB / 377.6 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.391e-05/0.2903, allocations: 16.83 kB / 377.6 MB, free: 17.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003349/0.2936, allocations: 2.844 MB / 380.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.2937, allocations: 1.25 kB / 380.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001776/0.2954, allocations: 0.9532 MB / 381.4 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001692/0.2956, allocations: 164.5 kB / 381.6 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.411e-05/0.2957, allocations: 15.84 kB / 381.6 MB, free: 14.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003077/0.296, allocations: 33.36 kB / 381.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000177/0.2962, allocations: 67.94 kB / 381.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.911e-05/0.2962, allocations: 20.59 kB / 381.7 MB, free: 14.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002415/0.2965, allocations: 200 kB / 381.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2965, allocations: 0 / 381.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006893/0.2972, allocations: 158.1 kB / 382 MB, free: 14.16 MB / 302.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.002792/0.3, allocations: 1.784 MB / 383.8 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.3017, allocations: 0.7251 MB / 384.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.095e-06/0.3017, allocations: 0 / 384.5 MB, free: 12.74 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008995/0.3026, allocations: 478.8 kB / 385 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005884/0.3032, allocations: 52.86 kB / 385.1 MB, free: 12.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005803/0.309, allocations: 3.821 MB / 388.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002267/0.3093, allocations: 0.7957 MB / 389.7 MB, free: 9.438 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002571/0.3095, allocations: 77.62 kB / 389.8 MB, free: 9.418 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001746/0.3097, allocations: 112 kB / 389.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of SimCode: time 6.92e-07/0.3097, allocations: 1.156 kB / 389.9 MB, free: 9.348 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03069/0.3404, allocations: 11.41 MB / 401.3 MB, free: 2.914 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.82, allocations: 22.08 kB / 401.3 MB, free: 2.898 MB / 302.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.0.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