Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001008/0.001008, allocations: 194 kB / 17.38 MB, free: 4.434 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.253/1.253, allocations: 226.5 MB / 244.7 MB, free: 8.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007421/0.0007421, allocations: 93.12 kB / 296.8 MB, free: 6.887 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002275/0.0002275, allocations: 8 kB / 356.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1962/0.1965, allocations: 51.29 MB / 408 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.003111/0.1996, allocations: 3.925 MB / 412 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001539/0.2012, allocations: 1.303 MB / 413.3 MB, free: 22.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002707/0.2015, allocations: 19.88 kB / 413.3 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002538/0.2017, allocations: 122.9 kB / 413.4 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002188/0.2019, allocations: 133.2 kB / 413.5 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004719/0.2024, allocations: 243.7 kB / 413.8 MB, free: 21.97 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005845/0.203, allocations: 0.8884 MB / 414.7 MB, free: 21.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004027/0.2034, allocations: 370.9 kB / 415 MB, free: 20.7 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002511/0.2037, allocations: 254.7 kB / 415.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002062/0.2039, allocations: 270.3 kB / 415.5 MB, free: 20.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.109e-05/0.204, allocations: 28 kB / 415.6 MB, free: 20.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001531/0.2041, allocations: 71.92 kB / 415.6 MB, free: 20.08 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.546e-05/0.2042, allocations: 111.4 kB / 415.7 MB, free: 19.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001882/0.2044, allocations: 375.5 kB / 416.1 MB, free: 19.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004555/0.2049, allocations: 0.7606 MB / 416.9 MB, free: 18.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.2049, allocations: 4 kB / 416.9 MB, free: 18.83 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2049, allocations: 0 / 416.9 MB, free: 18.83 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.008e-05/0.2049, allocations: 0 / 416.9 MB, free: 18.83 MB / 298.7 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.001045/0.2059, allocations: 0.9821 MB / 417.9 MB, free: 17.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.266e-05/0.206, allocations: 8.031 kB / 417.9 MB, free: 17.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001937/0.2062, allocations: 122.7 kB / 418 MB, free: 17.67 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005845/0.2068, allocations: 0.5916 MB / 418.6 MB, free: 17.04 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.2068, allocations: 61.98 kB / 418.6 MB, free: 16.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.423e-05/0.2069, allocations: 80 kB / 418.7 MB, free: 16.9 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009524/0.2079, allocations: 0.8442 MB / 419.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.15e-05/0.2079, allocations: 15.84 kB / 419.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.806e-05/0.2079, allocations: 32 kB / 419.6 MB, free: 15.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.208, allocations: 20 kB / 419.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007043/0.2087, allocations: 475.3 kB / 420.1 MB, free: 15.41 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.2111, allocations: 4.412 MB / 424.5 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004477/0.2116, allocations: 299.3 kB / 424.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000185/0.2118, allocations: 145.6 kB / 424.9 MB, free: 10.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.2119, allocations: 174.5 kB / 425.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/0.2119, allocations: 38.94 kB / 425.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=46): time 2.134e-06/0.2119, allocations: 0 / 425.1 MB, free: 10.11 MB / 298.7 MB Notification: Performance of matching and sorting (n=57): time 0.002502/0.2145, allocations: 1.734 MB / 426.9 MB, free: 8.273 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.062e-05/0.2145, allocations: 63.91 kB / 426.9 MB, free: 8.199 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.2149, allocations: 0.5391 MB / 427.5 MB, free: 7.652 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.008e-05/0.2149, allocations: 33.7 kB / 427.5 MB, free: 7.613 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001861/0.2151, allocations: 482.4 kB / 428 MB, free: 7.133 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.942e-05/0.2152, allocations: 212.9 kB / 428.2 MB, free: 6.922 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.303e-05/0.2153, allocations: 16 kB / 428.2 MB, free: 6.906 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.308e-05/0.2153, allocations: 382.8 kB / 428.6 MB, free: 6.523 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002345/0.2156, allocations: 153.9 kB / 428.7 MB, free: 6.371 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003146/0.2159, allocations: 467.2 kB / 429.2 MB, free: 5.785 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005821/0.2165, allocations: 0.6595 MB / 429.9 MB, free: 4.996 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.686e-06/0.2165, allocations: 4 kB / 429.9 MB, free: 4.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0008529/0.2174, allocations: 0.7377 MB / 430.6 MB, free: 4.246 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.2174, allocations: 12 kB / 430.6 MB, free: 4.234 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.066e-05/0.2174, allocations: 8 kB / 430.6 MB, free: 4.227 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001555/0.2176, allocations: 45.56 kB / 430.7 MB, free: 4.18 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004834/0.2181, allocations: 191.7 kB / 430.8 MB, free: 3.992 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008255/0.2189, allocations: 1.51 MB / 432.4 MB, free: 2.344 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002453/0.2192, allocations: 28.25 kB / 432.4 MB, free: 2.316 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.2192, allocations: 40 kB / 432.4 MB, free: 2.277 MB / 298.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002035/0.2194, allocations: 221.6 kB / 432.6 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.337e-05/0.2195, allocations: 79.06 kB / 432.7 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.649e-05/0.2196, allocations: 75.08 kB / 432.8 MB, free: 1.898 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.178e-06/0.2196, allocations: 7.938 kB / 432.8 MB, free: 1.891 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.2196, allocations: 7.984 kB / 432.8 MB, free: 1.883 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.2196, allocations: 4 kB / 432.8 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001393/0.221, allocations: 1.418 MB / 434.2 MB, free: 360 kB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.221, allocations: 4 kB / 434.2 MB, free: 356 kB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000419/0.2215, allocations: 119.8 kB / 434.3 MB, free: 236 kB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.033e-05/0.2215, allocations: 20.86 kB / 434.4 MB, free: 212 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.675e-05/0.2216, allocations: 15.98 kB / 434.4 MB, free: 196 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007671/0.2223, allocations: 1.276 MB / 435.7 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.2224, allocations: 4 kB / 435.7 MB, free: 14.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009641/0.2233, allocations: 0.7762 MB / 436.4 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.916e-05/0.2234, allocations: 136.2 kB / 436.6 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.943e-05/0.2235, allocations: 16 kB / 436.6 MB, free: 13.78 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000194/0.2237, allocations: 16.09 kB / 436.6 MB, free: 13.76 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.744e-05/0.2238, allocations: 51.95 kB / 436.7 MB, free: 13.71 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.66e-05/0.2238, allocations: 19.98 kB / 436.7 MB, free: 13.69 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0003605/0.2242, allocations: 359 kB / 437 MB, free: 13.34 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2242, allocations: 0 / 437 MB, free: 13.34 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005515/0.2247, allocations: 140 kB / 437.2 MB, free: 13.21 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001404/0.2249, allocations: 127 kB / 437.3 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008584/0.2257, allocations: 0.573 MB / 437.9 MB, free: 12.49 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.2258, allocations: 4 kB / 437.9 MB, free: 12.48 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003695/0.2261, allocations: 310.7 kB / 438.2 MB, free: 12.17 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007123/0.2269, allocations: 108.6 kB / 438.3 MB, free: 12.07 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002547/0.2294, allocations: 2.325 MB / 440.6 MB, free: 9.68 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005061/0.2299, allocations: 0.9729 MB / 441.6 MB, free: 8.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001392/0.2301, allocations: 67.36 kB / 441.6 MB, free: 8.613 MB / 314.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2301, allocations: 0 / 441.6 MB, free: 8.613 MB / 314.7 MB Notification: Performance of Templates: time 0.01356/0.2436, allocations: 12.17 MB / 453.8 MB, free: 12.44 MB / 330.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches