Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008399/0.0008399, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008373/0.0008373, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8724/0.8724, allocations: 177.1 MB / 204.3 MB, free: 5.723 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 324.6 MB, free: 15.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.513e-05/1.662e-05, allocations: 8.75 kB / 324.6 MB, free: 15.93 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001769/0.001786, allocations: 1.571 MB / 326.1 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003049/0.002091, allocations: 143.4 kB / 326.3 MB, free: 14.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.765e-05/0.002158, allocations: 7.875 kB / 326.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.712e-05/0.002195, allocations: 3.938 kB / 326.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.002314, allocations: 19.92 kB / 326.3 MB, free: 14.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001886/0.002503, allocations: 35.91 kB / 326.4 MB, free: 14.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.858e-05/0.002581, allocations: 31.86 kB / 326.4 MB, free: 14.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.839e-05/0.00267, allocations: 19.91 kB / 326.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.695e-05/0.002707, allocations: 15.98 kB / 326.4 MB, free: 14.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.446e-05/0.002741, allocations: 11.94 kB / 326.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.139e-05/0.002762, allocations: 0 / 326.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.238e-06/0.002772, allocations: 4 kB / 326.4 MB, free: 14.06 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.187e-05/0.002814, allocations: 15.92 kB / 326.5 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.507e-05/0.002839, allocations: 7.984 kB / 326.5 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.409e-05/0.002933, allocations: 39.88 kB / 326.5 MB, free: 14 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.794e-06/0.002934, allocations: 4 kB / 326.5 MB, free: 14 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.002935, allocations: 0 / 326.5 MB, free: 14 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.586e-06/0.002939, allocations: 0 / 326.5 MB, free: 14 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.0005514/0.00349, allocations: 305.2 kB / 326.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.506e-05/0.003525, allocations: 12.03 kB / 326.8 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.398e-05/0.003549, allocations: 30.75 kB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.098e-05/0.00357, allocations: 8.891 kB / 326.8 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001472/0.003717, allocations: 137.6 kB / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.975e-06/0.003725, allocations: 384 / 327 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.1e-05/0.003736, allocations: 16.36 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002578/0.003994, allocations: 113.6 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.654e-06/0.004002, allocations: 192 / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.004011, allocations: 4.375 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.44e-06/0.004016, allocations: 4.125 kB / 327.1 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.46e-05/0.004071, allocations: 23.92 kB / 327.1 MB, free: 13.27 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002313/0.004302, allocations: 228.8 kB / 327.4 MB, free: 13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.004431, allocations: 61.14 kB / 327.4 MB, free: 12.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.583e-05/0.004466, allocations: 25.77 kB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.004483, allocations: 7.984 kB / 327.5 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.609e-05/0.0045, allocations: 34.5 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.81e-07/0.0045, allocations: 0 / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001573/0.004658, allocations: 77.56 kB / 327.6 MB, free: 12.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.909e-05/0.004697, allocations: 77.23 kB / 327.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.723e-05/0.004774, allocations: 141.1 kB / 327.8 MB, free: 12.52 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.004789, allocations: 25.7 kB / 327.8 MB, free: 12.49 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.54e-05/0.004824, allocations: 88.12 kB / 327.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.159e-05/0.004836, allocations: 11.89 kB / 327.9 MB, free: 12.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.13e-05/0.004857, allocations: 9.719 kB / 327.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.168e-05/0.004929, allocations: 318.8 kB / 328.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.708e-05/0.004946, allocations: 7.984 kB / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.185e-05/0.004957, allocations: 4 kB / 328.2 MB, free: 12.04 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.141e-05/0.004989, allocations: 24.91 kB / 328.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-06/0.00499, allocations: 3.938 kB / 328.3 MB, free: 12.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 4.879e-05/0.005039, allocations: 45.62 kB / 328.3 MB, free: 11.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.131e-05/0.00505, allocations: 4 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.005055, allocations: 0 / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.086e-05/0.005066, allocations: 0 / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.936e-05/0.005095, allocations: 4 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.599e-06/0.0051, allocations: 3.938 kB / 328.3 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.617e-05/0.005116, allocations: 11.92 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.538e-06/0.00512, allocations: 4.031 kB / 328.3 MB, free: 11.93 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 5.208e-05/0.005172, allocations: 113.8 kB / 328.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.216e-05/0.005214, allocations: 53.58 kB / 328.5 MB, free: 11.75 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.342e-05/0.005238, allocations: 8.344 kB / 328.5 MB, free: 11.74 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.463e-06/0.005239, allocations: 4 kB / 328.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.005243, allocations: 0 / 328.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.005245, allocations: 0 / 328.5 MB, free: 11.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.005346, allocations: 136.7 kB / 328.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.005347, allocations: 0 / 328.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.125e-05/0.005368, allocations: 8 kB / 328.7 MB, free: 11.55 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.00537, allocations: 11.94 kB / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.171e-06/0.005377, allocations: 4 kB / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.11e-07/0.005377, allocations: 0 / 328.7 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.314e-06/0.00538, allocations: 7.922 kB / 328.7 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.923e-05/0.005469, allocations: 160.4 kB / 328.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.432e-05/0.005493, allocations: 19.88 kB / 328.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.566e-06/0.005502, allocations: 0 / 328.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.966e-05/0.005531, allocations: 3.938 kB / 328.9 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.569e-05/0.005557, allocations: 11.98 kB / 328.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.005559, allocations: 0 / 328.9 MB, free: 11.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.111e-05/0.0056, allocations: 103.3 kB / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0056, allocations: 0 / 329 MB, free: 11.21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001938/0.005794, allocations: 8 kB / 329 MB, free: 11.21 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.0004243/0.006218, allocations: 0.6976 MB / 329.7 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001108/0.006329, allocations: 23.97 kB / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.006331, allocations: 0 / 329.7 MB, free: 10.46 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.879e-05/0.00635, allocations: 7.938 kB / 329.7 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.00661, allocations: 24.47 kB / 329.7 MB, free: 10.43 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008437/0.007454, allocations: 1.259 MB / 331 MB, free: 9.078 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.64e-05/0.00751, allocations: 79.27 kB / 331.1 MB, free: 8.98 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.285e-05/0.007533, allocations: 0 / 331.1 MB, free: 8.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.557e-05/0.007568, allocations: 12.5 kB / 331.1 MB, free: 8.969 MB / 298.7 MB Notification: Performance of SimCode: time 5.51e-07/0.007569, allocations: 8.031 kB / 331.1 MB, free: 8.961 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01315/0.02072, allocations: 2.117 MB / 333.2 MB, free: 6.961 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.881/6.901, allocations: 10.88 kB / 333.2 MB, free: 6.957 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample2.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.51151445414871]