Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001312/0.001312, allocations: 105.9 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001296/0.001296, allocations: 216.5 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001593/0.001593, allocations: 60.28 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1023, allocations: 50.53 MB / 357.6 MB, free: 14.03 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.0059/0.1082, allocations: 4.587 MB / 362.2 MB, free: 9.418 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002533/0.1108, allocations: 1.395 MB / 363.6 MB, free: 8.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005146/0.1114, allocations: 19.88 kB / 363.6 MB, free: 8 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004342/0.1118, allocations: 182.2 kB / 363.8 MB, free: 7.82 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004446/0.1123, allocations: 166.3 kB / 363.9 MB, free: 7.656 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008897/0.1132, allocations: 379.4 kB / 364.3 MB, free: 7.285 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001042/0.1142, allocations: 0.9705 MB / 365.3 MB, free: 6.309 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005874/0.1148, allocations: 418.9 kB / 365.7 MB, free: 5.875 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005134/0.1154, allocations: 334.6 kB / 366 MB, free: 5.547 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004235/0.1158, allocations: 346 kB / 366.3 MB, free: 5.207 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001229/0.116, allocations: 75.94 kB / 366.4 MB, free: 5.133 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000264/0.1162, allocations: 123.9 kB / 366.5 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001538/0.1164, allocations: 179.3 kB / 366.7 MB, free: 4.836 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004231/0.1168, allocations: 421.5 kB / 367.1 MB, free: 4.422 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001208/0.118, allocations: 1.047 MB / 368.2 MB, free: 3.371 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.118, allocations: 0 / 368.2 MB, free: 3.371 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.1181, allocations: 3.938 kB / 368.2 MB, free: 3.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.41e-05/0.1181, allocations: 0 / 368.2 MB, free: 3.367 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: 201 * Number of variables: 201 Notification: Performance of Generate backend data structure: time 0.001808/0.1199, allocations: 1.153 MB / 369.3 MB, free: 2.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.12, allocations: 8.031 kB / 369.3 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/0.1201, allocations: 130.9 kB / 369.5 MB, free: 2.02 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003871/0.1205, allocations: 114.7 kB / 369.6 MB, free: 1.906 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000774/0.1213, allocations: 0.5916 MB / 370.2 MB, free: 1.27 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.886e-05/0.1213, allocations: 62 kB / 370.2 MB, free: 1.207 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001047/0.1215, allocations: 83.98 kB / 370.3 MB, free: 1.125 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001327/0.1228, allocations: 0.8481 MB / 371.2 MB, free: 172 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.301e-05/0.1229, allocations: 7.906 kB / 371.2 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.596e-05/0.1229, allocations: 32 kB / 371.2 MB, free: 132 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.123, allocations: 20 kB / 371.2 MB, free: 112 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.171/0.294, allocations: 473 kB / 371.7 MB, free: 20.4 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003592/0.2976, allocations: 4.397 MB / 376.1 MB, free: 16.86 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007514/0.2984, allocations: 307.9 kB / 376.4 MB, free: 16.74 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002859/0.2987, allocations: 145.7 kB / 376.5 MB, free: 16.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003019/0.299, allocations: 176.4 kB / 376.7 MB, free: 16.49 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.934e-05/0.2991, allocations: 36.25 kB / 376.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 3.086e-06/0.2991, allocations: 1.188 kB / 376.7 MB, free: 16.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003601/0.3027, allocations: 1.739 MB / 378.5 MB, free: 15.38 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.824e-05/0.3028, allocations: 57.5 kB / 378.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007788/0.3035, allocations: 0.5348 MB / 379.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.546e-05/0.3036, allocations: 35.08 kB / 379.1 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002804/0.3039, allocations: 483 kB / 379.6 MB, free: 14.66 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.304, allocations: 215.2 kB / 379.8 MB, free: 14.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001667/0.3042, allocations: 136 kB / 379.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.3043, allocations: 385.1 kB / 380.3 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003017/0.3046, allocations: 160 kB / 380.4 MB, free: 14.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004285/0.305, allocations: 453.5 kB / 380.9 MB, free: 13.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008189/0.3059, allocations: 0.6705 MB / 381.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.419e-05/0.3059, allocations: 10.08 kB / 381.6 MB, free: 13.02 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001174/0.3071, allocations: 0.734 MB / 382.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.431e-05/0.3071, allocations: 13.03 kB / 382.3 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.769e-05/0.3072, allocations: 13.09 kB / 382.3 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001866/0.3074, allocations: 47.61 kB / 382.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005796/0.308, allocations: 177.9 kB / 382.5 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001156/0.3091, allocations: 1.689 MB / 384.2 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003001/0.3094, allocations: 25.8 kB / 384.3 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.097e-05/0.3095, allocations: 35.56 kB / 384.3 MB, free: 11 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 100 * 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): 1 system {(1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002534/0.3097, allocations: 244.1 kB / 384.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.255e-05/0.3098, allocations: 77.47 kB / 384.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001167/0.31, allocations: 77.97 kB / 384.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.31, allocations: 9.969 kB / 384.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.133e-05/0.31, allocations: 0 / 384.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.671e-05/0.31, allocations: 4.938 kB / 384.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.3122, allocations: 1.408 MB / 386.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.613e-06/0.3122, allocations: 4.406 kB / 386.1 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004771/0.3127, allocations: 118.8 kB / 386.2 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.291e-05/0.3128, allocations: 24.22 kB / 386.2 MB, free: 9.812 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.167e-05/0.3128, allocations: 14.67 kB / 386.3 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006403/0.3135, allocations: 1.379 MB / 387.6 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.3135, allocations: 11.31 kB / 387.6 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001157/0.3147, allocations: 0.7706 MB / 388.4 MB, free: 7.91 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.252e-05/0.3148, allocations: 137.8 kB / 388.6 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.937e-05/0.3148, allocations: 20.44 kB / 388.6 MB, free: 7.766 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002018/0.3151, allocations: 9.844 kB / 388.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.3152, allocations: 43.83 kB / 388.6 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.855e-05/0.3152, allocations: 21.16 kB / 388.6 MB, free: 7.742 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000454/0.3157, allocations: 365.1 kB / 389 MB, free: 7.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3157, allocations: 0 / 389 MB, free: 7.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007789/0.3165, allocations: 142.4 kB / 389.1 MB, free: 7.555 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 10 (directMass.mass.s,directMass.mass.v,mass2a.s,mass2a.v,mass2b.s,mass2b.v,mass3a.s,mass3a.v,mass3b.s,mass3b.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001182/0.3177, allocations: 1.338 MB / 390.5 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001146/0.3188, allocations: 0.61 MB / 391.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.3188, allocations: 1.406 kB / 391.1 MB, free: 6.246 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005329/0.3194, allocations: 310 kB / 391.4 MB, free: 6.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006648/0.3201, allocations: 99.8 kB / 391.5 MB, free: 6.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007855/0.3279, allocations: 6.25 MB / 397.7 MB, free: 1.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005009/0.3284, allocations: 0.9716 MB / 398.7 MB, free: 0.9922 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003138/0.3288, allocations: 87.22 kB / 398.8 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003152/0.3291, allocations: 322.8 kB / 399.1 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3291, allocations: 1.562 kB / 399.1 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03905/0.3682, allocations: 11.6 MB / 410.7 MB, free: 8.258 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.12/10.49, allocations: 7.172 kB / 410.7 MB, free: 8.254 MB / 318.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches