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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008006/0.0008006, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007882/0.0007882, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8997/0.8997, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.192e-06/1.192e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.716e-05/1.835e-05, allocations: 6.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001819/0.001837, allocations: 1.568 MB / 326.1 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002686/0.002106, allocations: 147.5 kB / 326.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.935e-05/0.002165, allocations: 4 kB / 326.2 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.404e-05/0.002199, allocations: 7.938 kB / 326.3 MB, free: 14.15 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001017/0.002301, allocations: 3.938 kB / 326.3 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000176/0.002477, allocations: 39.83 kB / 326.3 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.002e-05/0.002557, allocations: 27.92 kB / 326.3 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.205e-05/0.002639, allocations: 15.94 kB / 326.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.75e-05/0.002677, allocations: 19.91 kB / 326.4 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.297e-05/0.00271, allocations: 11.98 kB / 326.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.85e-05/0.002728, allocations: 4 kB / 326.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.034e-06/0.002735, allocations: 0 / 326.4 MB, free: 14.03 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.011e-05/0.002775, allocations: 15.92 kB / 326.4 MB, free: 14.01 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.516e-05/0.0028, allocations: 15.94 kB / 326.4 MB, free: 14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.588e-05/0.002886, allocations: 47.81 kB / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.904e-06/0.002888, allocations: 0 / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.113e-06/0.002889, allocations: 0 / 326.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.002892, allocations: 0 / 326.5 MB, free: 13.95 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0002965/0.003189, allocations: 290.1 kB / 326.7 MB, free: 13.63 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.003222, allocations: 11.98 kB / 326.7 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.524e-05/0.003247, allocations: 38.73 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.842e-05/0.003266, allocations: 8.891 kB / 326.8 MB, free: 13.57 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.003416, allocations: 138.2 kB / 326.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.294e-06/0.003424, allocations: 4.375 kB / 326.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.846e-06/0.003433, allocations: 8.312 kB / 326.9 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.003629, allocations: 113.6 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.44e-06/0.003635, allocations: 192 / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.241e-06/0.003641, allocations: 384 / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.003645, allocations: 4.125 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.89e-05/0.003684, allocations: 23.98 kB / 327.1 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002142/0.003899, allocations: 224.8 kB / 327.3 MB, free: 12.97 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001194/0.004018, allocations: 57.2 kB / 327.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.644e-05/0.004054, allocations: 33.7 kB / 327.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.582e-05/0.00407, allocations: 3.938 kB / 327.4 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.549e-05/0.004086, allocations: 38.5 kB / 327.4 MB, free: 12.81 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.373e-06/0.004087, allocations: 3.938 kB / 327.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001467/0.004234, allocations: 85.62 kB / 327.5 MB, free: 12.71 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0003021/0.004536, allocations: 81.11 kB / 327.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.197e-05/0.004608, allocations: 133.1 kB / 327.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.977e-06/0.004617, allocations: 25.7 kB / 327.8 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.139e-05/0.004648, allocations: 88.14 kB / 327.8 MB, free: 12.36 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.152e-05/0.00466, allocations: 3.953 kB / 327.8 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.198e-05/0.004682, allocations: 13.72 kB / 327.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.501e-05/0.004747, allocations: 318.8 kB / 328.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.806e-05/0.004765, allocations: 4 kB / 328.2 MB, free: 12.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.359e-05/0.004778, allocations: 7.984 kB / 328.2 MB, free: 12 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.161e-05/0.00481, allocations: 20.95 kB / 328.2 MB, free: 11.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.004813, allocations: 3.984 kB / 328.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.225e-05/0.004865, allocations: 53.56 kB / 328.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.125e-05/0.004876, allocations: 8 kB / 328.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.00488, allocations: 0 / 328.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.676e-06/0.004889, allocations: 0 / 328.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.698e-05/0.004916, allocations: 4 kB / 328.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.00492, allocations: 3.984 kB / 328.3 MB, free: 11.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.272e-05/0.004933, allocations: 7.969 kB / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-06/0.004937, allocations: 0 / 328.3 MB, free: 11.89 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (1): * Single equations (assignments): 1 * 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 4.937e-05/0.004986, allocations: 117.8 kB / 328.4 MB, free: 11.77 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.86e-05/0.005025, allocations: 53.53 kB / 328.4 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.251e-05/0.005047, allocations: 16.33 kB / 328.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.703e-06/0.005049, allocations: 0 / 328.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.005052, allocations: 0 / 328.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.005055, allocations: 4 kB / 328.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.494e-05/0.00515, allocations: 132.8 kB / 328.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.00515, allocations: 0 / 328.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.745e-05/0.005178, allocations: 15.98 kB / 328.6 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.00518, allocations: 3.938 kB / 328.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-06/0.005185, allocations: 0 / 328.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.92e-07/0.005186, allocations: 4 kB / 328.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.005187, allocations: 0 / 328.6 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.944e-05/0.005276, allocations: 164.3 kB / 328.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.355e-05/0.0053, allocations: 19.81 kB / 328.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.225e-06/0.005308, allocations: 3.938 kB / 328.8 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.1e-05/0.005339, allocations: 8 kB / 328.8 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.921e-05/0.005358, allocations: 0 / 328.8 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.998e-06/0.005362, allocations: 11.94 kB / 328.8 MB, free: 11.27 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.196e-05/0.005404, allocations: 99.25 kB / 328.9 MB, free: 11.17 MB / 298.7 MB Notification: Performance of sort global known variables: time 4e-08/0.005404, allocations: 0 / 328.9 MB, free: 11.17 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001377/0.005542, allocations: 8 kB / 328.9 MB, free: 11.16 MB / 298.7 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.0002376/0.005779, allocations: 0.6937 MB / 329.6 MB, free: 10.44 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 7.258e-05/0.005852, allocations: 23.92 kB / 329.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.223e-06/0.005853, allocations: 0 / 329.6 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.536e-05/0.005868, allocations: 12.05 kB / 329.7 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002185/0.006087, allocations: 19.16 kB / 329.7 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007154/0.006802, allocations: 1.263 MB / 330.9 MB, free: 9.035 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.682e-05/0.006849, allocations: 67.34 kB / 331 MB, free: 8.949 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.012e-05/0.006869, allocations: 3.984 kB / 331 MB, free: 8.945 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.305e-05/0.006902, allocations: 20.59 kB / 331 MB, free: 8.926 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.006903, allocations: 0 / 331 MB, free: 8.926 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01491/0.02182, allocations: 2.116 MB / 333.1 MB, free: 6.906 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.635/6.657, allocations: 4 kB / 333.1 MB, free: 6.902 MB / 298.7 MB " [Timeout remaining time 653] (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 --stepSize=3.99122e-05 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock.y,sample1.y Variables in the result:assignClock.u,assignClock.y,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,step.height,step.offset,step.startTime,step.y,time [Calling sys.exit(0), Time elapsed: 8.302611774764955]