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.001246/0.001247, allocations: 109.2 kB / 17.21 MB, free: 6.27 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001295/0.001295, allocations: 213.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.27/1.27, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001062/0.001062, allocations: 59.81 kB / 306.4 MB, free: 0.7266 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07532/0.07639, allocations: 50.53 MB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.GenerationOfFMUs): time 0.00478/0.08119, allocations: 4.591 MB / 361.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.08292, allocations: 1.383 MB / 362.9 MB, free: 8.184 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.08319, allocations: 23.88 kB / 362.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002876/0.08348, allocations: 134.9 kB / 363 MB, free: 8.027 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002416/0.08373, allocations: 130.8 kB / 363.1 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005296/0.08427, allocations: 327.7 kB / 363.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007432/0.08502, allocations: 0.9118 MB / 364.4 MB, free: 6.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004563/0.08548, allocations: 378.9 kB / 364.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003016/0.08579, allocations: 298.5 kB / 365 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002516/0.08605, allocations: 337.9 kB / 365.4 MB, free: 5.645 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.506e-05/0.08612, allocations: 40 kB / 365.4 MB, free: 5.605 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001676/0.0863, allocations: 87.92 kB / 365.5 MB, free: 5.52 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.279e-05/0.0864, allocations: 139.3 kB / 365.6 MB, free: 5.383 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002587/0.08666, allocations: 401.5 kB / 366 MB, free: 4.988 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000652/0.08732, allocations: 0.9693 MB / 367 MB, free: 4.016 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.658e-06/0.08733, allocations: 4 kB / 367 MB, free: 4.012 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.08734, allocations: 0 / 367 MB, free: 4.012 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.08735, allocations: 0 / 367 MB, free: 4.012 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.001276/0.08863, allocations: 1.146 MB / 368.1 MB, free: 2.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.37e-05/0.08867, allocations: 8.031 kB / 368.1 MB, free: 2.809 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000114/0.08879, allocations: 126.9 kB / 368.3 MB, free: 2.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002065/0.089, allocations: 118.7 kB / 368.4 MB, free: 2.559 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006386/0.08965, allocations: 0.5955 MB / 369 MB, free: 1.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.732e-05/0.0897, allocations: 58 kB / 369 MB, free: 1.863 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.751e-05/0.08979, allocations: 83.98 kB / 369.1 MB, free: 1.781 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001083/0.09088, allocations: 0.8442 MB / 370 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.941e-05/0.09092, allocations: 11.84 kB / 370 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.088e-05/0.09098, allocations: 36 kB / 370 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.515e-05/0.091, allocations: 20 kB / 370 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007606/0.09176, allocations: 475.3 kB / 370.5 MB, free: 300 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1225/0.2142, allocations: 4.394 MB / 374.9 MB, free: 16.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005127/0.2148, allocations: 308 kB / 375.2 MB, free: 16.44 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002018/0.215, allocations: 141.1 kB / 375.3 MB, free: 16.38 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001766/0.2152, allocations: 167.5 kB / 375.5 MB, free: 16.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.473e-05/0.2152, allocations: 49.5 kB / 375.5 MB, free: 16.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=46): time 2.104e-06/0.2152, allocations: 0 / 375.5 MB, free: 16.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=57): time 0.002765/0.218, allocations: 1.739 MB / 377.3 MB, free: 15.1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.447e-05/0.218, allocations: 57.53 kB / 377.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004987/0.2185, allocations: 0.535 MB / 377.9 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.994e-05/0.2185, allocations: 35.02 kB / 377.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000195/0.2187, allocations: 479.9 kB / 378.4 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.541e-05/0.2188, allocations: 214.2 kB / 378.6 MB, free: 14.22 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.219, allocations: 136.2 kB / 378.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.251e-05/0.2191, allocations: 386.6 kB / 379.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002504/0.2193, allocations: 163.4 kB / 379.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003305/0.2197, allocations: 456.9 kB / 379.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005803/0.2202, allocations: 0.668 MB / 380.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.2203, allocations: 8.062 kB / 380.4 MB, free: 12.74 MB / 302.1 MB Notification: Performance of matching and sorting (n=105) (initialization): time 0.0009048/0.2212, allocations: 0.7407 MB / 381.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.732e-05/0.2212, allocations: 8.531 kB / 381.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.131e-05/0.2212, allocations: 10.62 kB / 381.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001309/0.2213, allocations: 49.28 kB / 381.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004815/0.2218, allocations: 177.9 kB / 381.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007967/0.2226, allocations: 1.511 MB / 382.9 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002484/0.2229, allocations: 25.25 kB / 382.9 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.747e-05/0.2229, allocations: 43.59 kB / 382.9 MB, free: 10.89 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.0002041/0.2232, allocations: 241.4 kB / 383.2 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.673e-05/0.2232, allocations: 74.02 kB / 383.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.64e-05/0.2233, allocations: 77.25 kB / 383.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.2234, allocations: 5.875 kB / 383.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.2234, allocations: 3.312 kB / 383.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.2234, allocations: 3.094 kB / 383.3 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001546/0.2249, allocations: 1.41 MB / 384.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.2249, allocations: 3.219 kB / 384.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004239/0.2254, allocations: 116.2 kB / 384.9 MB, free: 9.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.933e-05/0.2254, allocations: 30.19 kB / 384.9 MB, free: 9.703 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.63e-05/0.2255, allocations: 11.53 kB / 384.9 MB, free: 9.699 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004834/0.226, allocations: 1.29 MB / 386.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.226, allocations: 4.234 kB / 386.2 MB, free: 8.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008438/0.2268, allocations: 0.7823 MB / 387 MB, free: 7.898 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.162e-05/0.2269, allocations: 133.8 kB / 387.1 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.365e-05/0.227, allocations: 18.64 kB / 387.1 MB, free: 7.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001915/0.2272, allocations: 15.31 kB / 387.1 MB, free: 7.75 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.872e-05/0.2273, allocations: 42.73 kB / 387.2 MB, free: 7.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.2273, allocations: 18.23 kB / 387.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003431/0.2276, allocations: 365 kB / 387.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2277, allocations: 0 / 387.5 MB, free: 7.57 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005563/0.2282, allocations: 142.5 kB / 387.7 MB, free: 7.547 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.001016/0.2292, allocations: 1.35 MB / 389 MB, free: 6.512 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007646/0.23, allocations: 0.5774 MB / 389.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.23, allocations: 0 / 389.6 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003211/0.2304, allocations: 308.7 kB / 389.9 MB, free: 6.074 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005392/0.2309, allocations: 95.94 kB / 390 MB, free: 6.027 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006205/0.2371, allocations: 6.595 MB / 396.6 MB, free: 1.371 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003757/0.2375, allocations: 0.9654 MB / 397.6 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002569/0.2378, allocations: 87.58 kB / 397.7 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002873/0.2381, allocations: 329.6 kB / 398 MB, free: 400 kB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.2381, allocations: 0 / 398 MB, free: 400 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.014/3.252, allocations: 11.21 MB / 409.2 MB, free: 9.141 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002225/3.252, allocations: 230.8 kB / 409.4 MB, free: 8.891 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.016/5.269, allocations: 0 / 409.4 MB, free: 8.891 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