Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 112 kB / 20.43 MB, free: 1.301 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00133/0.00133, allocations: 182 kB / 23.72 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001777/0.001777, allocations: 43.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2439/0.2457, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002734/0.2484, allocations: 1.532 MB / 424.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003834/0.2488, allocations: 135.5 kB / 424.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.85e-05/0.2489, allocations: 11.88 kB / 424.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.827e-05/0.2489, allocations: 7.938 kB / 424.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001067/0.249, allocations: 7.922 kB / 424.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.2492, allocations: 39.91 kB / 424.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.205e-05/0.2493, allocations: 27.92 kB / 424.4 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.916e-05/0.2494, allocations: 15.97 kB / 424.4 MB, free: 12.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.322e-05/0.2495, allocations: 15.94 kB / 424.4 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.434e-05/0.2495, allocations: 19.86 kB / 424.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.791e-05/0.2495, allocations: 0 / 424.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.024e-05/0.2495, allocations: 4 kB / 424.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.791e-05/0.2496, allocations: 15.92 kB / 424.5 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.088e-05/0.2496, allocations: 15.88 kB / 424.5 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001081/0.2497, allocations: 60.05 kB / 424.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2497, allocations: 0 / 424.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2497, allocations: 0 / 424.5 MB, free: 12.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.2497, allocations: 0 / 424.5 MB, free: 12.7 MB / 334.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.0004073/0.2501, allocations: 302 kB / 424.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.2502, allocations: 12.03 kB / 424.8 MB, free: 12.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.273e-05/0.2502, allocations: 30.75 kB / 424.9 MB, free: 12.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.686e-05/0.2502, allocations: 12.88 kB / 424.9 MB, free: 12.31 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002019/0.2504, allocations: 130.5 kB / 425 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.716e-06/0.2504, allocations: 384 / 425 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.626e-05/0.2505, allocations: 8.375 kB / 425 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002639/0.2507, allocations: 117.5 kB / 425.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.729e-06/0.2507, allocations: 3.938 kB / 425.1 MB, free: 12.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.943e-06/0.2507, allocations: 4 kB / 425.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.2507, allocations: 0 / 425.1 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.956e-05/0.2508, allocations: 15.98 kB / 425.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002971/0.2511, allocations: 240.7 kB / 425.4 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001824/0.2513, allocations: 65.14 kB / 425.5 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.573e-05/0.2514, allocations: 25.77 kB / 425.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.795e-05/0.2514, allocations: 7.938 kB / 425.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.078e-05/0.2514, allocations: 30.56 kB / 425.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.2514, allocations: 0 / 425.5 MB, free: 11.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002402/0.2516, allocations: 81.55 kB / 425.6 MB, free: 11.47 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.978e-05/0.2517, allocations: 81.3 kB / 425.7 MB, free: 11.37 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.2518, allocations: 138 kB / 425.8 MB, free: 11.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.2518, allocations: 29.7 kB / 425.8 MB, free: 11.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.9e-05/0.2519, allocations: 84.12 kB / 425.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.19e-05/0.2519, allocations: 4 kB / 425.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.515e-05/0.2519, allocations: 21.72 kB / 425.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2521, allocations: 319 kB / 426.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.75e-05/0.2521, allocations: 4 kB / 426.3 MB, free: 10.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.496e-05/0.2522, allocations: 39.41 kB / 426.3 MB, free: 10.7 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.376e-05/0.2522, allocations: 47.36 kB / 426.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2522, allocations: 3.938 kB / 426.3 MB, free: 10.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001212/0.2524, allocations: 69.52 kB / 426.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.2524, allocations: 4 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.2524, allocations: 4 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.2524, allocations: 0 / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.536e-05/0.2525, allocations: 12.11 kB / 426.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.558e-06/0.2525, allocations: 4 kB / 426.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.509e-05/0.2525, allocations: 8 kB / 426.4 MB, free: 10.53 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-06/0.2525, allocations: 0 / 426.4 MB, free: 10.53 MB / 334.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: 4 (step.y,sample1.y,assignClock.y,assignClock.u) * 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 8.803e-05/0.2526, allocations: 125.8 kB / 426.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.31e-05/0.2527, allocations: 53.59 kB / 426.6 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.124e-05/0.2527, allocations: 12.33 kB / 426.6 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.2527, allocations: 4 kB / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2527, allocations: 0 / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2527, allocations: 4 kB / 426.6 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001663/0.2529, allocations: 136.7 kB / 426.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.012e-06/0.2529, allocations: 0 / 426.8 MB, free: 10.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.308e-05/0.2529, allocations: 8 kB / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.2529, allocations: 0 / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.2529, allocations: 8 kB / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.2529, allocations: 0 / 426.8 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.2529, allocations: 3.984 kB / 426.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00017/0.2531, allocations: 172.2 kB / 427 MB, free: 9.926 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.482e-05/0.2531, allocations: 15.88 kB / 427 MB, free: 9.91 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.2531, allocations: 4 kB / 427 MB, free: 9.906 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.88e-05/0.2532, allocations: 4 kB / 427 MB, free: 9.902 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.642e-05/0.2532, allocations: 3.984 kB / 427 MB, free: 9.898 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.2532, allocations: 4 kB / 427 MB, free: 9.895 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.2e-05/0.2533, allocations: 106.9 kB / 427.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2533, allocations: 0 / 427.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002168/0.2535, allocations: 8 kB / 427.1 MB, free: 9.785 MB / 334.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: 4 (step.y,assignClock.u,assignClock.y,sample1.y) * 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.0004499/0.254, allocations: 0.7015 MB / 427.8 MB, free: 9.055 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001279/0.2541, allocations: 35.91 kB / 427.8 MB, free: 9.02 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2541, allocations: 0 / 427.8 MB, free: 9.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.358e-05/0.2541, allocations: 11.94 kB / 427.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002975/0.2544, allocations: 19.3 kB / 427.9 MB, free: 8.992 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.2557, allocations: 1.315 MB / 429.2 MB, free: 7.574 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003042/0.256, allocations: 0.6922 MB / 429.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.758e-05/0.256, allocations: 11.92 kB / 429.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.662e-05/0.256, allocations: 11.48 kB / 429.9 MB, free: 6.832 MB / 334.1 MB Notification: Performance of SimCode: time 3.11e-07/0.256, allocations: 4 kB / 429.9 MB, free: 6.828 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02708/0.2831, allocations: 1.568 MB / 431.5 MB, free: 5.387 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.54/10.82, allocations: 13.03 kB / 431.5 MB, free: 5.379 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.134675489971414]