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.001081/0.001082, allocations: 109.5 kB / 16.51 MB, free: 6.715 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.001052/0.001052, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.24/1.24, allocations: 222.9 MB / 241.1 MB, free: 13.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001023/0.001023, allocations: 48.61 kB / 300.1 MB, free: 5.941 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08341/0.08445, allocations: 49.44 MB / 349.5 MB, free: 4.492 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00527/0.08975, allocations: 4.563 MB / 354.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00222/0.09199, allocations: 1.31 MB / 355.4 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005795/0.09259, allocations: 23.88 kB / 355.4 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004993/0.09314, allocations: 130.9 kB / 355.5 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004883/0.09364, allocations: 130.8 kB / 355.7 MB, free: 14.3 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007289/0.09438, allocations: 319.7 kB / 356 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009603/0.09536, allocations: 0.9272 MB / 356.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005133/0.09589, allocations: 382.9 kB / 357.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003979/0.0963, allocations: 294.6 kB / 357.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003762/0.09668, allocations: 330 kB / 357.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001149/0.09681, allocations: 44 kB / 357.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002229/0.09704, allocations: 83.97 kB / 358 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.09716, allocations: 143.3 kB / 358.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003288/0.09749, allocations: 397.5 kB / 358.5 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000746/0.09825, allocations: 0.9654 MB / 359.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.09826, allocations: 0 / 359.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.09827, allocations: 0 / 359.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.249e-05/0.0983, allocations: 3.938 kB / 359.5 MB, free: 10.42 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.001569/0.09987, allocations: 1.142 MB / 360.6 MB, free: 9.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.089e-05/0.09992, allocations: 16.02 kB / 360.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001265/0.1001, allocations: 123 kB / 360.8 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001392/0.1002, allocations: 102.8 kB / 360.9 MB, free: 8.984 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007638/0.101, allocations: 0.5955 MB / 361.5 MB, free: 8.344 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.897e-05/0.101, allocations: 62 kB / 361.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.833e-05/0.1011, allocations: 83.91 kB / 361.6 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.1023, allocations: 0.8403 MB / 362.5 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.636e-05/0.1024, allocations: 19.84 kB / 362.5 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.299e-05/0.1025, allocations: 35.94 kB / 362.5 MB, free: 7.195 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.1025, allocations: 20 kB / 362.5 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008342/0.1033, allocations: 475.3 kB / 363 MB, free: 6.711 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003334/0.1067, allocations: 4.392 MB / 367.4 MB, free: 2.125 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005121/0.1072, allocations: 306.2 kB / 367.7 MB, free: 1.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.1074, allocations: 141.6 kB / 367.8 MB, free: 1.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000203/0.1076, allocations: 170.6 kB / 368 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.292e-05/0.1077, allocations: 42.94 kB / 368 MB, free: 1.426 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 1.873e-06/0.1077, allocations: 0 / 368 MB, free: 1.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.1369/0.2446, allocations: 1.725 MB / 369.8 MB, free: 25.41 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.826e-05/0.2447, allocations: 65.75 kB / 369.8 MB, free: 25.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000594/0.2453, allocations: 0.5308 MB / 370.4 MB, free: 25.22 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.2453, allocations: 39.08 kB / 370.4 MB, free: 25.19 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002548/0.2456, allocations: 482.8 kB / 370.9 MB, free: 24.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001111/0.2457, allocations: 210.5 kB / 371.1 MB, free: 24.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.2459, allocations: 138.2 kB / 371.2 MB, free: 24.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001045/0.246, allocations: 384 kB / 371.6 MB, free: 24.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002821/0.2463, allocations: 161 kB / 371.7 MB, free: 24.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000384/0.2467, allocations: 469.7 kB / 372.2 MB, free: 24.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006421/0.2473, allocations: 0.657 MB / 372.9 MB, free: 23.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.2473, allocations: 3.406 kB / 372.9 MB, free: 23.49 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0009984/0.2483, allocations: 0.7361 MB / 373.6 MB, free: 23.16 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.24e-05/0.2484, allocations: 9.344 kB / 373.6 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.83e-05/0.2484, allocations: 10.19 kB / 373.6 MB, free: 23.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001735/0.2486, allocations: 54.8 kB / 373.7 MB, free: 23.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005038/0.2491, allocations: 182.8 kB / 373.8 MB, free: 23.12 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008424/0.2499, allocations: 1.511 MB / 375.4 MB, free: 21.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00027/0.2502, allocations: 25.5 kB / 375.4 MB, free: 21.65 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.2503, allocations: 48.72 kB / 375.4 MB, free: 21.64 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.0002229/0.2505, allocations: 229 kB / 375.7 MB, free: 21.45 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.599e-05/0.2506, allocations: 68.25 kB / 375.7 MB, free: 21.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.74e-05/0.2507, allocations: 77.23 kB / 375.8 MB, free: 21.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.2507, allocations: 5.5 kB / 375.8 MB, free: 21.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.204e-06/0.2507, allocations: 1.438 kB / 375.8 MB, free: 21.36 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.2507, allocations: 9.719 kB / 375.8 MB, free: 21.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001526/0.2522, allocations: 1.415 MB / 377.2 MB, free: 20.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.96e-06/0.2522, allocations: 11.27 kB / 377.2 MB, free: 20.49 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004337/0.2527, allocations: 113.4 kB / 377.3 MB, free: 20.48 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.545e-05/0.2528, allocations: 25.31 kB / 377.4 MB, free: 20.47 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.2528, allocations: 18.53 kB / 377.4 MB, free: 20.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000492/0.2533, allocations: 1.275 MB / 378.7 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.2533, allocations: 6.906 kB / 378.7 MB, free: 19.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008186/0.2541, allocations: 0.7756 MB / 379.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.623e-05/0.2542, allocations: 141.2 kB / 379.6 MB, free: 18.54 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.203e-05/0.2543, allocations: 15.47 kB / 379.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001918/0.2545, allocations: 10.23 kB / 379.6 MB, free: 18.53 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.401e-05/0.2545, allocations: 48.3 kB / 379.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.346e-05/0.2546, allocations: 17.14 kB / 379.7 MB, free: 18.51 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003193/0.2549, allocations: 364.6 kB / 380 MB, free: 18.34 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2549, allocations: 0 / 380 MB, free: 18.34 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005736/0.2555, allocations: 137.4 kB / 380.2 MB, free: 18.32 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.0009711/0.2565, allocations: 1.347 MB / 381.5 MB, free: 17.29 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007538/0.2572, allocations: 0.5782 MB / 382.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.2572, allocations: 1.531 kB / 382.1 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003193/0.2576, allocations: 310.3 kB / 382.4 MB, free: 16.85 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005316/0.2581, allocations: 96.48 kB / 382.5 MB, free: 16.8 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006006/0.2641, allocations: 6.572 MB / 389.1 MB, free: 12.16 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.2645, allocations: 0.9641 MB / 390 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002518/0.2647, allocations: 83.2 kB / 390.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002851/0.265, allocations: 327.8 kB / 390.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of SimCode: time 7.11e-07/0.265, allocations: 0 / 390.4 MB, free: 11.19 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2546/0.5196, allocations: 11.19 MB / 401.6 MB, free: 5.066 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001586/0.5198, allocations: 227.7 kB / 401.8 MB, free: 4.816 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.365/2.885, allocations: 0 / 401.8 MB, free: 4.816 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