Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001248/0.001248, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001945/0.001945, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001328/0.001329, allocations: 63.91 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1416/0.143, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.004444/0.1475, allocations: 1.556 MB / 359.1 MB, free: 12.42 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005982/0.1481, allocations: 139.5 kB / 359.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.1483, allocations: 0 / 359.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 6.779e-05/0.1484, allocations: 3.938 kB / 359.3 MB, free: 12.28 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001903/0.1486, allocations: 15.92 kB / 359.3 MB, free: 12.26 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003623/0.149, allocations: 31.84 kB / 359.3 MB, free: 12.23 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001519/0.1491, allocations: 39.86 kB / 359.4 MB, free: 12.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001488/0.1493, allocations: 15.97 kB / 359.4 MB, free: 12.18 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.095e-05/0.1494, allocations: 15.94 kB / 359.4 MB, free: 12.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.181e-05/0.1494, allocations: 11.92 kB / 359.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.296e-05/0.1495, allocations: 4 kB / 359.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.779e-05/0.1495, allocations: 4 kB / 359.4 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.058e-05/0.1496, allocations: 15.92 kB / 359.4 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.006e-05/0.1496, allocations: 27.8 kB / 359.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001891/0.1498, allocations: 43.83 kB / 359.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.1498, allocations: 0 / 359.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.317e-06/0.1499, allocations: 0 / 359.5 MB, free: 12.05 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.927e-06/0.1499, allocations: 0 / 359.5 MB, free: 12.05 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0007709/0.1506, allocations: 367.5 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.821e-05/0.1507, allocations: 8.031 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.037e-05/0.1508, allocations: 38.75 kB / 359.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.244e-05/0.1508, allocations: 4.844 kB / 359.9 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004219/0.1513, allocations: 200 kB / 360.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.119e-05/0.1513, allocations: 384 / 360.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.26e-05/0.1513, allocations: 8.375 kB / 360.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000377/0.1517, allocations: 113.6 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.359e-05/0.1517, allocations: 3.938 kB / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.069e-05/0.1517, allocations: 0 / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.1518, allocations: 0 / 360.2 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.736e-05/0.1519, allocations: 31.86 kB / 360.3 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004448/0.1523, allocations: 261.8 kB / 360.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002627/0.1526, allocations: 142.2 kB / 360.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.511e-05/0.1527, allocations: 33.7 kB / 360.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.709e-05/0.1527, allocations: 4 kB / 360.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.092e-05/0.1528, allocations: 30.56 kB / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 1.623e-06/0.1528, allocations: 0 / 360.7 MB, free: 10.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003032/0.1531, allocations: 77.52 kB / 360.8 MB, free: 10.53 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.788e-05/0.1532, allocations: 85.11 kB / 360.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001508/0.1533, allocations: 128.9 kB / 361 MB, free: 10.29 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.1533, allocations: 33.83 kB / 361 MB, free: 10.25 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.76e-05/0.1534, allocations: 88.12 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.992e-05/0.1534, allocations: 7.938 kB / 361.1 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.382e-05/0.1535, allocations: 17.62 kB / 361.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000214/0.1537, allocations: 314.8 kB / 361.5 MB, free: 9.816 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.753e-05/0.1538, allocations: 7.984 kB / 361.5 MB, free: 9.809 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.489e-05/0.1539, allocations: 43.36 kB / 361.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.057e-05/0.154, allocations: 39.42 kB / 361.6 MB, free: 9.703 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.871e-06/0.154, allocations: 7.938 kB / 361.6 MB, free: 9.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001394/0.1541, allocations: 65.56 kB / 361.6 MB, free: 9.625 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.022e-05/0.1541, allocations: 4 kB / 361.6 MB, free: 9.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.187e-06/0.1542, allocations: 4 kB / 361.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.128e-05/0.1542, allocations: 0 / 361.6 MB, free: 9.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.757e-05/0.1543, allocations: 11.98 kB / 361.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.1543, allocations: 0 / 361.6 MB, free: 9.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.82e-05/0.1543, allocations: 4 kB / 361.6 MB, free: 9.602 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.059e-05/0.1543, allocations: 4 kB / 361.7 MB, free: 9.598 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (4): * Single equations (assignments): 4 * 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 0.000118/0.1545, allocations: 134.9 kB / 361.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.192e-05/0.1545, allocations: 45.55 kB / 361.8 MB, free: 9.406 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.876e-05/0.1546, allocations: 12.23 kB / 361.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.324e-06/0.1546, allocations: 0 / 361.8 MB, free: 9.387 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.235e-06/0.1546, allocations: 4 kB / 361.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.1546, allocations: 0 / 361.8 MB, free: 9.383 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002192/0.1549, allocations: 169.6 kB / 362 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.1549, allocations: 0 / 362 MB, free: 9.168 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.821e-05/0.1549, allocations: 8 kB / 362 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.1549, allocations: 0 / 362 MB, free: 9.16 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.012e-05/0.1549, allocations: 4 kB / 362 MB, free: 9.156 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.155, allocations: 4 kB / 362 MB, free: 9.152 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.155, allocations: 3.938 kB / 362 MB, free: 9.148 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00021/0.1552, allocations: 172.2 kB / 362.2 MB, free: 8.961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.022e-05/0.1553, allocations: 93.38 kB / 362.3 MB, free: 8.852 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.643e-05/0.1553, allocations: 3.938 kB / 362.3 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.854e-05/0.1554, allocations: 3.984 kB / 362.3 MB, free: 8.844 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.857e-05/0.1554, allocations: 12 kB / 362.3 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.965e-06/0.1554, allocations: 7.984 kB / 362.3 MB, free: 8.824 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.164e-05/0.1555, allocations: 99.27 kB / 362.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1555, allocations: 0 / 362.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.1557, allocations: 8 kB / 362.4 MB, free: 8.719 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 simulation (4): * Single equations (assignments): 4 * 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.0006278/0.1564, allocations: 0.7014 MB / 363.1 MB, free: 7.988 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001965/0.1566, allocations: 31.91 kB / 363.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.1566, allocations: 0 / 363.2 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.696e-05/0.1567, allocations: 8 kB / 363.2 MB, free: 7.949 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004604/0.1571, allocations: 20.02 kB / 363.2 MB, free: 7.93 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001708/0.1588, allocations: 1.322 MB / 364.5 MB, free: 6.504 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004142/0.1593, allocations: 0.6924 MB / 365.2 MB, free: 5.785 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.977e-05/0.1593, allocations: 4.25 kB / 365.2 MB, free: 5.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.455e-05/0.1594, allocations: 15.42 kB / 365.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1594, allocations: 0 / 365.2 MB, free: 5.766 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02114/0.1805, allocations: 1.453 MB / 366.7 MB, free: 4.391 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.065/8.246, allocations: 10.64 kB / 366.7 MB, free: 4.383 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches