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: translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") translateModel(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|directMass.mass.s|directMass.mass.v|mass2a.s|mass2a.v|mass2b.s|mass2b.v|mass3a.s|mass3a.v|mass3b.s|mass3b.v",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001392/0.001392, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001728/0.001728, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.456/1.456, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002114/0.002114, allocations: 61.03 kB / 308.4 MB, free: 15.91 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1426/0.1447, allocations: 50.53 MB / 358.9 MB, free: 13.36 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.006523/0.1513, allocations: 4.588 MB / 363.5 MB, free: 8.746 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00299/0.1543, allocations: 1.411 MB / 364.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007008/0.155, allocations: 19.88 kB / 364.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004364/0.1555, allocations: 182.2 kB / 365.1 MB, free: 7.133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003684/0.1559, allocations: 166.2 kB / 365.3 MB, free: 6.969 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008067/0.1567, allocations: 375.5 kB / 365.6 MB, free: 6.602 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008624/0.1576, allocations: 0.9705 MB / 366.6 MB, free: 5.625 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005532/0.1581, allocations: 426.9 kB / 367 MB, free: 5.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003949/0.1585, allocations: 330.5 kB / 367.3 MB, free: 4.859 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003392/0.1589, allocations: 346 kB / 367.7 MB, free: 4.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.522e-05/0.159, allocations: 72 kB / 367.7 MB, free: 4.449 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.1592, allocations: 123.9 kB / 367.9 MB, free: 4.328 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001161/0.1593, allocations: 175.3 kB / 368 MB, free: 4.156 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003167/0.1597, allocations: 425.5 kB / 368.4 MB, free: 3.738 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008966/0.1606, allocations: 1.09 MB / 369.5 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.1606, allocations: 4 kB / 369.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.1606, allocations: 0 / 369.5 MB, free: 2.641 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.052e-05/0.1606, allocations: 0 / 369.5 MB, free: 2.641 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.001495/0.1621, allocations: 1.146 MB / 370.7 MB, free: 1.445 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1621, allocations: 11.97 kB / 370.7 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002656/0.1624, allocations: 114.7 kB / 370.8 MB, free: 1.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009864/0.1634, allocations: 0.6305 MB / 371.4 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.328e-05/0.1635, allocations: 62 kB / 371.5 MB, free: 0.582 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001019/0.1636, allocations: 84 kB / 371.6 MB, free: 0.5 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2358/0.3994, allocations: 0.838 MB / 372.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.577e-05/0.3995, allocations: 12.17 kB / 372.4 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.251e-05/0.3996, allocations: 35.47 kB / 372.5 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.215e-05/0.3996, allocations: 20.97 kB / 372.5 MB, free: 19.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001136/0.4008, allocations: 473.1 kB / 372.9 MB, free: 19.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003392/0.4042, allocations: 4.371 MB / 377.3 MB, free: 16.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006096/0.4048, allocations: 307 kB / 377.6 MB, free: 16.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002585/0.4051, allocations: 139.5 kB / 377.8 MB, free: 16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000166/0.4053, allocations: 167.9 kB / 377.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.352e-05/0.4053, allocations: 37.53 kB / 378 MB, free: 15.77 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.084e-06/0.4053, allocations: 1.156 kB / 378 MB, free: 15.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.003419/0.4087, allocations: 1.739 MB / 379.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.271e-05/0.4088, allocations: 59.73 kB / 379.8 MB, free: 14.64 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007535/0.4095, allocations: 0.5332 MB / 380.3 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.859e-05/0.4096, allocations: 36.67 kB / 380.3 MB, free: 14.36 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/0.4099, allocations: 481.8 kB / 380.8 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001478/0.41, allocations: 214.5 kB / 381 MB, free: 13.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002018/0.4102, allocations: 137.8 kB / 381.1 MB, free: 13.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001525/0.4104, allocations: 383.3 kB / 381.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003133/0.4107, allocations: 159.7 kB / 381.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004758/0.4112, allocations: 462.6 kB / 382.1 MB, free: 12.92 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008006/0.412, allocations: 0.6583 MB / 382.8 MB, free: 12.37 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.173e-06/0.412, allocations: 7.031 kB / 382.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.001207/0.4133, allocations: 0.7389 MB / 383.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.923e-05/0.4133, allocations: 10.03 kB / 383.5 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.9e-05/0.4133, allocations: 13.66 kB / 383.5 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001896/0.4135, allocations: 47.02 kB / 383.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005966/0.4141, allocations: 186 kB / 383.8 MB, free: 11.99 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001044/0.4152, allocations: 1.678 MB / 385.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003027/0.4155, allocations: 29.22 kB / 385.5 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.63e-05/0.4155, allocations: 40.17 kB / 385.5 MB, free: 10.34 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.0002764/0.4158, allocations: 237.6 kB / 385.8 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.623e-05/0.4159, allocations: 77.97 kB / 385.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001225/0.4161, allocations: 77.53 kB / 385.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.753e-06/0.4161, allocations: 5.969 kB / 385.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.351e-05/0.4161, allocations: 3.625 kB / 385.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.4161, allocations: 6.469 kB / 385.9 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002254/0.4184, allocations: 1.41 MB / 387.3 MB, free: 9.188 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.4184, allocations: 6.719 kB / 387.3 MB, free: 9.184 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004941/0.4189, allocations: 118.6 kB / 387.5 MB, free: 9.172 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.032e-05/0.419, allocations: 23.33 kB / 387.5 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.49e-05/0.419, allocations: 16.34 kB / 387.5 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006993/0.4197, allocations: 1.368 MB / 388.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.861e-06/0.4197, allocations: 4.422 kB / 388.9 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0011/0.4208, allocations: 0.7893 MB / 389.7 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001177/0.421, allocations: 132.4 kB / 389.8 MB, free: 7.125 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.7e-05/0.421, allocations: 15.72 kB / 389.8 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002046/0.4212, allocations: 15.95 kB / 389.8 MB, free: 7.109 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001142/0.4214, allocations: 42.42 kB / 389.9 MB, free: 7.098 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.387e-05/0.4214, allocations: 17.98 kB / 389.9 MB, free: 7.094 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005207/0.4219, allocations: 365.8 kB / 390.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4219, allocations: 0 / 390.2 MB, free: 6.93 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.00104/0.423, allocations: 137.5 kB / 390.4 MB, free: 6.91 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.0001526/0.4231, allocations: 127.5 kB / 390.5 MB, free: 6.801 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001027/0.4242, allocations: 0.5923 MB / 391.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.4242, allocations: 5.125 kB / 391.1 MB, free: 6.523 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004037/0.4246, allocations: 304.8 kB / 391.4 MB, free: 6.352 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006186/0.4252, allocations: 97.59 kB / 391.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002748/0.428, allocations: 1.853 MB / 393.3 MB, free: 5.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005087/0.4285, allocations: 0.9606 MB / 394.3 MB, free: 4.367 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002884/0.4288, allocations: 92.12 kB / 394.4 MB, free: 4.344 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001309/0.4289, allocations: 58.92 kB / 394.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.4289, allocations: 0 / 394.4 MB, free: 4.336 MB / 302.1 MB Notification: Performance of Templates: time 0.01194/0.4409, allocations: 5.276 MB / 399.7 MB, free: 2.559 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > 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