Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",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.001412/0.001412, allocations: 114.5 kB / 17.73 MB, free: 5.336 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.001518/0.001518, allocations: 187 kB / 18.67 MB, free: 4.402 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.356/1.356, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001372/0.001372, allocations: 52.27 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09244/0.09382, allocations: 46.62 MB / 374.6 MB, free: 5.082 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003846/0.09771, allocations: 2.334 MB / 377 MB, free: 2.734 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001944/0.09969, allocations: 0.9682 MB / 377.9 MB, free: 1.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002485/0.09997, allocations: 4 kB / 377.9 MB, free: 1.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002597/0.1003, allocations: 47.58 kB / 378 MB, free: 1.707 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006048/0.1009, allocations: 139.2 kB / 378.1 MB, free: 1.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004235/0.1013, allocations: 167.7 kB / 378.3 MB, free: 1.406 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005411/0.1019, allocations: 426.7 kB / 378.7 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.1021, allocations: 72.69 kB / 378.8 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002856/0.1024, allocations: 179.5 kB / 379 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003262/0.1027, allocations: 219.3 kB / 379.2 MB, free: 0.5234 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.409e-05/0.1028, allocations: 36 kB / 379.2 MB, free: 500 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000233/0.103, allocations: 123.8 kB / 379.3 MB, free: 376 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001391/0.1032, allocations: 99.66 kB / 379.4 MB, free: 276 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001787/0.1034, allocations: 167.2 kB / 379.6 MB, free: 108 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1794/0.2828, allocations: 439.2 kB / 380 MB, free: 9.371 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.123e-06/0.2828, allocations: 0 / 380 MB, free: 9.371 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.595e-06/0.2829, allocations: 0 / 380 MB, free: 9.371 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.049e-05/0.2829, allocations: 1.969 kB / 380 MB, free: 9.371 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001194/0.2841, allocations: 0.642 MB / 380.7 MB, free: 8.918 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.2841, allocations: 10.22 kB / 380.7 MB, free: 8.918 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.197e-05/0.2842, allocations: 63.36 kB / 380.7 MB, free: 8.879 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003197/0.2845, allocations: 51.62 kB / 380.8 MB, free: 8.863 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.2851, allocations: 314.9 kB / 381.1 MB, free: 8.637 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001119/0.2852, allocations: 85.53 kB / 381.2 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.8e-05/0.2853, allocations: 27.5 kB / 381.2 MB, free: 8.574 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007386/0.286, allocations: 379.6 kB / 381.6 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/0.286, allocations: 5.812 kB / 381.6 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.668e-05/0.2861, allocations: 9 kB / 381.6 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.2861, allocations: 5.5 kB / 381.6 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009427/0.2871, allocations: 419.3 kB / 382 MB, free: 8.5 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002224/0.2893, allocations: 1.237 MB / 383.2 MB, free: 7.969 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007221/0.29, allocations: 354.6 kB / 383.6 MB, free: 7.945 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003774/0.2904, allocations: 188.5 kB / 383.8 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.301e-05/0.2905, allocations: 5.594 kB / 383.8 MB, free: 7.938 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.345e-05/0.2905, allocations: 38.47 kB / 383.8 MB, free: 7.898 MB / 318.1 MB Notification: Performance of pre-optimization done (n=43): time 1.904e-06/0.2905, allocations: 2.406 kB / 383.8 MB, free: 7.898 MB / 318.1 MB Notification: Performance of matching and sorting (n=45): time 0.004545/0.295, allocations: 1.924 MB / 385.7 MB, free: 7.246 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.42e-05/0.2951, allocations: 85.89 kB / 385.8 MB, free: 7.148 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002687/0.2954, allocations: 245.4 kB / 386.1 MB, free: 7.039 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.73e-05/0.2954, allocations: 36.67 kB / 386.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.733e-05/0.2955, allocations: 136.8 kB / 386.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.726e-05/0.2956, allocations: 166.6 kB / 386.4 MB, free: 6.801 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001299/0.2957, allocations: 84.33 kB / 386.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.75e-05/0.2958, allocations: 332.9 kB / 386.8 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003473/0.2961, allocations: 171.8 kB / 387 MB, free: 6.465 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003898/0.2965, allocations: 230.6 kB / 387.2 MB, free: 6.414 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006509/0.2972, allocations: 345.2 kB / 387.5 MB, free: 6.262 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.876e-06/0.2972, allocations: 1.25 kB / 387.5 MB, free: 6.262 MB / 318.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001117/0.2983, allocations: 0.5569 MB / 388.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.2984, allocations: 6.125 kB / 388.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.233e-06/0.2984, allocations: 2.156 kB / 388.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007307/0.2991, allocations: 254.7 kB / 388.3 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002427/0.2994, allocations: 51.91 kB / 388.4 MB, free: 5.965 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003467/0.3029, allocations: 2.886 MB / 391.3 MB, free: 3.797 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002892/0.3032, allocations: 28 kB / 391.3 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.912e-05/0.3032, allocations: 17.41 kB / 391.3 MB, free: 3.785 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001806/0.3034, allocations: 160.9 kB / 391.5 MB, free: 3.641 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.516e-05/0.3035, allocations: 29.3 kB / 391.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.425e-05/0.3036, allocations: 42.7 kB / 391.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.608e-06/0.3036, allocations: 3.812 kB / 391.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.3036, allocations: 2.094 kB / 391.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.3036, allocations: 1.875 kB / 391.6 MB, free: 3.594 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001755/0.3054, allocations: 1.093 MB / 392.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.527e-06/0.3054, allocations: 0 / 392.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000233/0.3056, allocations: 43.56 kB / 392.7 MB, free: 2.988 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006694/0.3063, allocations: 240 kB / 392.9 MB, free: 2.922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.444e-05/0.3063, allocations: 14.62 kB / 392.9 MB, free: 2.914 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003207/0.3096, allocations: 2.847 MB / 395.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3096, allocations: 1.641 kB / 395.8 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001407/0.311, allocations: 0.8202 MB / 396.6 MB, free: 372 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.3112, allocations: 136.6 kB / 396.7 MB, free: 248 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.473e-05/0.3112, allocations: 11.59 kB / 396.8 MB, free: 240 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002539/0.3115, allocations: 30.47 kB / 396.8 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001573/0.3116, allocations: 66.84 kB / 396.9 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3e-05/0.3117, allocations: 11.61 kB / 396.9 MB, free: 216 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001979/0.3119, allocations: 184.3 kB / 397 MB, free: 108 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3119, allocations: 0 / 397 MB, free: 108 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006872/0.3126, allocations: 139.1 kB / 397.2 MB, free: 88 kB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.002097/0.3147, allocations: 1.422 MB / 398.6 MB, free: 15.14 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001441/0.3162, allocations: 0.6264 MB / 399.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.3162, allocations: 0 / 399.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007869/0.317, allocations: 437 kB / 399.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004478/0.3174, allocations: 42.38 kB / 399.7 MB, free: 14.59 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005439/0.3229, allocations: 3.461 MB / 403.2 MB, free: 12.45 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003714/0.3233, allocations: 0.7813 MB / 403.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002068/0.3235, allocations: 57.52 kB / 404 MB, free: 11.73 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001503/0.3237, allocations: 79.69 kB / 404.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3237, allocations: 4 kB / 404.1 MB, free: 11.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03392/0.3576, allocations: 9.868 MB / 413.9 MB, free: 6.918 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.8/12.16, allocations: 7.891 kB / 414 MB, free: 6.91 MB / 334.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches