Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator",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.001385/0.001385, allocations: 106.6 kB / 17.73 MB, free: 5.348 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.001581/0.001581, allocations: 191 kB / 18.67 MB, free: 4.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.323/1.323, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 47.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08075/0.08203, allocations: 46.61 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.Oscillator): time 0.003578/0.08565, allocations: 2.407 MB / 377 MB, free: 2.672 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.08682, allocations: 0.6239 MB / 377.7 MB, free: 2.039 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002252/0.08707, allocations: 4 kB / 377.7 MB, free: 2.035 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002002/0.08731, allocations: 35.59 kB / 377.7 MB, free: 2 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002269/0.08755, allocations: 71.34 kB / 377.8 MB, free: 1.93 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003083/0.08787, allocations: 59.88 kB / 377.8 MB, free: 1.871 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003646/0.08825, allocations: 254.9 kB / 378.1 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002225/0.08848, allocations: 109.5 kB / 378.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.08868, allocations: 95.64 kB / 378.3 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001895/0.08888, allocations: 107.5 kB / 378.4 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.405e-05/0.08894, allocations: 24 kB / 378.4 MB, free: 1.289 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.486e-05/0.08899, allocations: 20 kB / 378.4 MB, free: 1.27 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 4.957e-05/0.08904, allocations: 47.83 kB / 378.5 MB, free: 1.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001118/0.08916, allocations: 115.4 kB / 378.6 MB, free: 1.109 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002899/0.08946, allocations: 251.1 kB / 378.8 MB, free: 0.8633 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.54e-06/0.08947, allocations: 3.938 kB / 378.8 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.08948, allocations: 3.938 kB / 378.8 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.428e-06/0.08949, allocations: 4 kB / 378.8 MB, free: 0.8516 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007986/0.0903, allocations: 0.5185 MB / 379.4 MB, free: 292 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.09035, allocations: 11.97 kB / 379.4 MB, free: 280 kB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.567e-05/0.09042, allocations: 54.73 kB / 379.4 MB, free: 216 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.601e-05/0.09048, allocations: 24.66 kB / 379.4 MB, free: 192 kB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.1556/0.2461, allocations: 238.8 kB / 379.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.2461, allocations: 15.81 kB / 379.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.2462, allocations: 25.66 kB / 379.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004347/0.2466, allocations: 213.3 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.802e-05/0.2467, allocations: 2.219 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.2467, allocations: 6.938 kB / 379.9 MB, free: 12.9 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2467, allocations: 9.438 kB / 379.9 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003152/0.247, allocations: 149 kB / 380.1 MB, free: 12.89 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009809/0.248, allocations: 0.7749 MB / 380.9 MB, free: 12.46 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003603/0.2484, allocations: 203 kB / 381.1 MB, free: 12.41 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002033/0.2486, allocations: 101.9 kB / 381.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.048e-05/0.2486, allocations: 4.125 kB / 381.2 MB, free: 12.39 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.863e-05/0.2487, allocations: 33.62 kB / 381.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 2.033e-06/0.2487, allocations: 3.094 kB / 381.2 MB, free: 12.36 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.001418/0.2501, allocations: 0.8651 MB / 382.1 MB, free: 11.82 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.489e-05/0.2501, allocations: 89.41 kB / 382.2 MB, free: 11.72 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.2503, allocations: 181.8 kB / 382.3 MB, free: 11.59 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.2503, allocations: 30.77 kB / 382.4 MB, free: 11.56 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.312e-05/0.2504, allocations: 133.4 kB / 382.5 MB, free: 11.44 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.484e-05/0.2504, allocations: 100.1 kB / 382.6 MB, free: 11.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.927e-05/0.2505, allocations: 51.39 kB / 382.6 MB, free: 11.33 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.029e-05/0.2506, allocations: 330 kB / 383 MB, free: 11.01 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001847/0.2508, allocations: 64.41 kB / 383 MB, free: 10.99 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.251, allocations: 114.6 kB / 383.1 MB, free: 10.92 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003226/0.2513, allocations: 186.7 kB / 383.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.2513, allocations: 4.094 kB / 383.3 MB, free: 10.82 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003752/0.2517, allocations: 236.3 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.2517, allocations: 10.56 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.2517, allocations: 6.547 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.759e-05/0.2517, allocations: 3.719 kB / 383.6 MB, free: 10.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002398/0.252, allocations: 64.92 kB / 383.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.686e-06/0.252, allocations: 4.188 kB / 383.6 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.2521, allocations: 16.19 kB / 383.7 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.614e-05/0.2521, allocations: 9.797 kB / 383.7 MB, free: 10.7 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.355e-05/0.2522, allocations: 142.1 kB / 383.8 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.67e-05/0.2523, allocations: 19.41 kB / 383.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.187e-05/0.2524, allocations: 31.11 kB / 383.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.526e-06/0.2524, allocations: 4.25 kB / 383.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2524, allocations: 1.125 kB / 383.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.2524, allocations: 3.531 kB / 383.9 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006839/0.2531, allocations: 0.587 MB / 384.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.2531, allocations: 1.797 kB / 384.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.2533, allocations: 57.19 kB / 384.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.2534, allocations: 1.969 kB / 384.5 MB, free: 10.08 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.2534, allocations: 12.17 kB / 384.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.126e-06/0.2534, allocations: 2.031 kB / 384.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2534, allocations: 1.906 kB / 384.5 MB, free: 10.07 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005486/0.254, allocations: 0.496 MB / 385 MB, free: 9.727 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.815e-05/0.254, allocations: 103.5 kB / 385.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.808e-05/0.254, allocations: 3.844 kB / 385.1 MB, free: 9.617 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001563/0.2542, allocations: 10.61 kB / 385.1 MB, free: 9.613 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.309e-05/0.2543, allocations: 21.81 kB / 385.2 MB, free: 9.605 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.371e-05/0.2543, allocations: 7.766 kB / 385.2 MB, free: 9.605 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.684e-05/0.2544, allocations: 134 kB / 385.3 MB, free: 9.512 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2544, allocations: 4 kB / 385.3 MB, free: 9.508 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003195/0.2547, allocations: 52.84 kB / 385.4 MB, free: 9.5 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (damper1.s_rel,damper1.v_rel,mass1.s,mass1.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 (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007125/0.2554, allocations: 1.02 MB / 386.4 MB, free: 8.637 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003677/0.2558, allocations: 182.5 kB / 386.6 MB, free: 8.586 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.2558, allocations: 0 / 386.6 MB, free: 8.586 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001712/0.256, allocations: 101.8 kB / 386.7 MB, free: 8.555 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005359/0.2565, allocations: 47.09 kB / 386.7 MB, free: 8.535 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002555/0.2591, allocations: 2.627 MB / 389.3 MB, free: 6.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001683/0.2593, allocations: 0.7494 MB / 390.1 MB, free: 5.891 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 8.843e-05/0.2594, allocations: 23.48 kB / 390.1 MB, free: 5.883 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.441e-05/0.2595, allocations: 66.44 kB / 390.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.2595, allocations: 0 / 390.2 MB, free: 5.84 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.119/1.378, allocations: 4.468 MB / 394.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.582/10.96, allocations: 9.516 kB / 394.6 MB, free: 5.086 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Translational/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches