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.001545/0.001545, 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.001839/0.001839, 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.348/1.348, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 55.78 kB / 307 MB, free: 0.5664 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1156, allocations: 50.54 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006172/0.1218, allocations: 4.588 MB / 362.2 MB, free: 9.41 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002998/0.1248, allocations: 1.399 MB / 363.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001101/0.1259, allocations: 23.88 kB / 363.6 MB, free: 7.984 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008112/0.1269, allocations: 178.2 kB / 363.8 MB, free: 7.809 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001125/0.128, allocations: 162.3 kB / 363.9 MB, free: 7.648 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001727/0.1298, allocations: 379.4 kB / 364.3 MB, free: 7.277 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001551/0.1314, allocations: 0.9781 MB / 365.3 MB, free: 6.293 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007197/0.1321, allocations: 418.9 kB / 365.7 MB, free: 5.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007196/0.1328, allocations: 330.6 kB / 366 MB, free: 5.535 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006612/0.1335, allocations: 342 kB / 366.3 MB, free: 5.199 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002103/0.1337, allocations: 76 kB / 366.4 MB, free: 5.125 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004885/0.1342, allocations: 120 kB / 366.5 MB, free: 5.008 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000165/0.1344, allocations: 179.2 kB / 366.7 MB, free: 4.832 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004377/0.1349, allocations: 425.5 kB / 367.1 MB, free: 4.414 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001093/0.136, allocations: 1.051 MB / 368.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.17e-06/0.136, allocations: 0 / 368.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.136, allocations: 0 / 368.2 MB, free: 3.359 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.845e-05/0.136, allocations: 0 / 368.2 MB, free: 3.359 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.001982/0.138, allocations: 1.149 MB / 369.3 MB, free: 2.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.1381, allocations: 12.02 kB / 369.3 MB, free: 2.148 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001405/0.1382, allocations: 127 kB / 369.5 MB, free: 2.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000278/0.1385, allocations: 114.7 kB / 369.6 MB, free: 1.902 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008898/0.1394, allocations: 0.5994 MB / 370.2 MB, free: 1.258 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.018e-05/0.1395, allocations: 66 kB / 370.2 MB, free: 1.191 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001033/0.1396, allocations: 80 kB / 370.3 MB, free: 1.113 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.1409, allocations: 0.8442 MB / 371.2 MB, free: 164 kB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.192e-05/0.1409, allocations: 11.84 kB / 371.2 MB, free: 152 kB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.373e-05/0.141, allocations: 32 kB / 371.2 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.639e-05/0.141, allocations: 28 kB / 371.2 MB, free: 92 kB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.1625/0.3036, allocations: 466.5 kB / 371.7 MB, free: 20.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00301/0.3066, allocations: 4.391 MB / 376.1 MB, free: 16.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005527/0.3072, allocations: 309.7 kB / 376.4 MB, free: 16.67 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002714/0.3075, allocations: 142.6 kB / 376.5 MB, free: 16.61 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002372/0.3077, allocations: 168.1 kB / 376.7 MB, free: 16.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.759e-05/0.3078, allocations: 38.05 kB / 376.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.404e-06/0.3078, allocations: 0 / 376.7 MB, free: 16.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003716/0.3115, allocations: 1.743 MB / 378.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.3116, allocations: 59.5 kB / 378.5 MB, free: 15.26 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007538/0.3123, allocations: 0.5325 MB / 379 MB, free: 15.02 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.3124, allocations: 36.36 kB / 379.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003163/0.3127, allocations: 486.2 kB / 379.6 MB, free: 14.59 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001575/0.3129, allocations: 214.5 kB / 379.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001807/0.313, allocations: 133.6 kB / 379.9 MB, free: 14.36 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001365/0.3132, allocations: 388.5 kB / 380.3 MB, free: 14.01 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002571/0.3135, allocations: 160.8 kB / 380.4 MB, free: 13.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000353/0.3138, allocations: 459.9 kB / 380.9 MB, free: 13.52 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000638/0.3145, allocations: 0.6639 MB / 381.5 MB, free: 12.96 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.43e-06/0.3145, allocations: 6.391 kB / 381.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001126/0.3156, allocations: 0.7373 MB / 382.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.3156, allocations: 8.219 kB / 382.3 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.829e-05/0.3157, allocations: 13.28 kB / 382.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002218/0.3159, allocations: 48.67 kB / 382.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006319/0.3165, allocations: 181.7 kB / 382.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001269/0.3178, allocations: 1.686 MB / 384.2 MB, free: 10.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003444/0.3182, allocations: 25.45 kB / 384.2 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.683e-05/0.3182, allocations: 37.38 kB / 384.3 MB, free: 10.93 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.0002477/0.3185, allocations: 237.6 kB / 384.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.587e-05/0.3186, allocations: 73.83 kB / 384.6 MB, free: 10.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001139/0.3187, allocations: 80.58 kB / 384.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.3187, allocations: 10.47 kB / 384.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.029e-05/0.3187, allocations: 1.844 kB / 384.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.3187, allocations: 3.375 kB / 384.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001807/0.3205, allocations: 1.417 MB / 386.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3206, allocations: 1.906 kB / 386.1 MB, free: 9.77 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004455/0.321, allocations: 117.4 kB / 386.2 MB, free: 9.758 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.609e-05/0.3211, allocations: 28.59 kB / 386.2 MB, free: 9.742 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.803e-05/0.3211, allocations: 10.75 kB / 386.3 MB, free: 9.738 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000574/0.3217, allocations: 1.377 MB / 387.6 MB, free: 8.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.3217, allocations: 8.062 kB / 387.6 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008921/0.3226, allocations: 0.7749 MB / 388.4 MB, free: 7.844 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.718e-05/0.3227, allocations: 140.1 kB / 388.5 MB, free: 7.711 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.584e-05/0.3228, allocations: 18.2 kB / 388.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00021/0.323, allocations: 10.47 kB / 388.6 MB, free: 7.695 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.712e-05/0.3231, allocations: 39.72 kB / 388.6 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.468e-05/0.3231, allocations: 21.91 kB / 388.6 MB, free: 7.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003834/0.3235, allocations: 361.8 kB / 389 MB, free: 7.52 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3235, allocations: 0 / 389 MB, free: 7.52 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006197/0.3241, allocations: 141.1 kB / 389.1 MB, free: 7.496 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.001058/0.3252, allocations: 1.341 MB / 390.5 MB, free: 6.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009959/0.3262, allocations: 0.6074 MB / 391.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.3262, allocations: 1.5 kB / 391.1 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003432/0.3266, allocations: 312.9 kB / 391.4 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000581/0.3272, allocations: 105.1 kB / 391.5 MB, free: 5.957 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006473/0.3337, allocations: 6.256 MB / 397.7 MB, free: 1.645 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005016/0.3342, allocations: 0.9655 MB / 398.7 MB, free: 0.9336 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002951/0.3345, allocations: 86.75 kB / 398.8 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003015/0.3348, allocations: 326.6 kB / 399.1 MB, free: 0.668 MB / 302.1 MB Notification: Performance of SimCode: time 7.51e-07/0.3348, allocations: 0 / 399.1 MB, free: 0.668 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3357/0.6706, allocations: 11.6 MB / 410.7 MB, free: 8.25 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.34/13.01, allocations: 0 / 410.7 MB, free: 8.25 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 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.mat","/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