Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs",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.00115/0.00115, allocations: 107.3 kB / 16.92 MB, free: 5.77 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.00108/0.00108, allocations: 191.3 kB / 17.85 MB, free: 5.168 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.397/1.397, allocations: 222.9 MB / 241.5 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001698/0.001699, allocations: 39 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1182, allocations: 49.44 MB / 350.2 MB, free: 4.336 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.007754/0.126, allocations: 4.56 MB / 354.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003833/0.1299, allocations: 1.337 MB / 356.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001136/0.131, allocations: 19.88 kB / 356.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006639/0.1318, allocations: 178.2 kB / 356.2 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007868/0.1326, allocations: 166.3 kB / 356.4 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001352/0.134, allocations: 363.5 kB / 356.8 MB, free: 13.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00172/0.1357, allocations: 0.9821 MB / 357.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008649/0.1366, allocations: 406.9 kB / 358.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005443/0.1372, allocations: 330.6 kB / 358.5 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005011/0.1377, allocations: 346 kB / 358.8 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001531/0.1378, allocations: 72 kB / 358.9 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003366/0.1382, allocations: 119.9 kB / 359 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002399/0.1385, allocations: 167.3 kB / 359.2 MB, free: 11.26 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005085/0.139, allocations: 433.5 kB / 359.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001342/0.1403, allocations: 1.043 MB / 360.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.873e-06/0.1404, allocations: 0 / 360.6 MB, free: 9.789 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1404, allocations: 3.938 kB / 360.6 MB, free: 9.785 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.35e-05/0.1404, allocations: 0 / 360.6 MB, free: 9.785 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.002271/0.1427, allocations: 1.146 MB / 361.8 MB, free: 8.59 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1427, allocations: 8.031 kB / 361.8 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001375/0.1429, allocations: 126.9 kB / 361.9 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001625/0.1431, allocations: 110.8 kB / 362 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009391/0.144, allocations: 0.5916 MB / 362.6 MB, free: 7.707 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.783e-05/0.1441, allocations: 62 kB / 362.7 MB, free: 7.645 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001026/0.1442, allocations: 87.89 kB / 362.8 MB, free: 7.559 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00146/0.1456, allocations: 0.8442 MB / 363.6 MB, free: 6.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.09e-05/0.1457, allocations: 11.89 kB / 363.6 MB, free: 6.594 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.762e-05/0.1458, allocations: 32 kB / 363.6 MB, free: 6.562 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.273e-05/0.1458, allocations: 28 kB / 363.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008849/0.1467, allocations: 471.2 kB / 364.1 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003808/0.1505, allocations: 4.392 MB / 368.5 MB, free: 1.488 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005467/0.1511, allocations: 299.5 kB / 368.8 MB, free: 1.188 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002247/0.1513, allocations: 145.5 kB / 369 MB, free: 1.043 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002225/0.1515, allocations: 178.6 kB / 369.1 MB, free: 0.832 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.1516, allocations: 34.94 kB / 369.2 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.764e-06/0.1516, allocations: 0 / 369.2 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.1946/0.3462, allocations: 1.73 MB / 370.9 MB, free: 25.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.3463, allocations: 68.61 kB / 371 MB, free: 25.33 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001058/0.3474, allocations: 0.5385 MB / 371.5 MB, free: 25.2 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.325e-05/0.3474, allocations: 33.95 kB / 371.5 MB, free: 25.16 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003639/0.3478, allocations: 481.6 kB / 372 MB, free: 24.91 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.348, allocations: 205.2 kB / 372.2 MB, free: 24.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002568/0.3483, allocations: 141.4 kB / 372.3 MB, free: 24.67 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.3484, allocations: 382.7 kB / 372.7 MB, free: 24.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004777/0.3489, allocations: 160.7 kB / 372.9 MB, free: 24.27 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005251/0.3494, allocations: 462.4 kB / 373.3 MB, free: 23.85 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009207/0.3504, allocations: 0.6704 MB / 374 MB, free: 23.3 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.937e-05/0.3504, allocations: 2.656 kB / 374 MB, free: 23.3 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001752/0.3522, allocations: 0.7375 MB / 374.7 MB, free: 22.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.487e-05/0.3522, allocations: 8.875 kB / 374.7 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.885e-05/0.3522, allocations: 9.547 kB / 374.7 MB, free: 22.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002498/0.3525, allocations: 55.11 kB / 374.8 MB, free: 22.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006413/0.3531, allocations: 186.4 kB / 375 MB, free: 22.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001257/0.3544, allocations: 1.682 MB / 376.7 MB, free: 21.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004083/0.3548, allocations: 25.11 kB / 376.7 MB, free: 21.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.714e-05/0.3549, allocations: 40.05 kB / 376.7 MB, free: 21.28 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.0003317/0.3552, allocations: 233 kB / 377 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001534/0.3554, allocations: 68.16 kB / 377 MB, free: 21.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001295/0.3555, allocations: 81.72 kB / 377.1 MB, free: 20.99 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.034e-06/0.3556, allocations: 9.438 kB / 377.1 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.3556, allocations: 2.078 kB / 377.1 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.326e-06/0.3556, allocations: 6.562 kB / 377.1 MB, free: 20.98 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002441/0.358, allocations: 1.419 MB / 378.5 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.3581, allocations: 2.656 kB / 378.5 MB, free: 20.12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004772/0.3585, allocations: 117.1 kB / 378.7 MB, free: 20.11 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001016/0.3586, allocations: 23.91 kB / 378.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.209e-05/0.3587, allocations: 15.14 kB / 378.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008184/0.3595, allocations: 1.366 MB / 380.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.739e-06/0.3595, allocations: 8.578 kB / 380.1 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001048/0.3606, allocations: 0.7813 MB / 380.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.3607, allocations: 133.2 kB / 381 MB, free: 18.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.081e-05/0.3608, allocations: 19.84 kB / 381 MB, free: 18.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.3611, allocations: 22.28 kB / 381 MB, free: 18.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.3613, allocations: 35.38 kB / 381.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.717e-05/0.3613, allocations: 18.08 kB / 381.1 MB, free: 18.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004681/0.3618, allocations: 367 kB / 381.4 MB, free: 17.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3618, allocations: 0 / 381.4 MB, free: 17.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008008/0.3626, allocations: 138.2 kB / 381.6 MB, free: 17.85 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.001307/0.3639, allocations: 1.339 MB / 382.9 MB, free: 16.83 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00118/0.3651, allocations: 0.6062 MB / 383.5 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3651, allocations: 0 / 383.5 MB, free: 16.54 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003951/0.3655, allocations: 309.9 kB / 383.8 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007765/0.3663, allocations: 114.9 kB / 383.9 MB, free: 16.31 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008919/0.3753, allocations: 6.244 MB / 390.2 MB, free: 12.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008303/0.3761, allocations: 0.9601 MB / 391.1 MB, free: 11.31 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004145/0.3766, allocations: 89.84 kB / 391.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004497/0.377, allocations: 322.7 kB / 391.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of SimCode: time 1.483e-06/0.377, allocations: 1.031 kB / 391.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1045/0.4816, allocations: 11.57 MB / 403.1 MB, free: 3.883 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.8/10.28, allocations: 1.703 kB / 403.1 MB, free: 3.883 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_GenerationOfFMUs.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches