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.0008579/0.0008579, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0009607/0.0009607, allocations: 157 kB / 23.93 MB, free: 0.6289 MB / 18.57 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 0.8868/0.8868, allocations: 173.4 MB / 200.4 MB, free: 9.457 MB / 186.7 MB " [Timeout remaining time 179] 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 1.864e-06/1.864e-06, allocations: 0 / 318.4 MB, free: 6.262 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.294e-05/2.481e-05, allocations: 2.281 kB / 318.4 MB, free: 6.258 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.Sample1): time 0.002777/0.002802, allocations: 1.5 MB / 319.9 MB, free: 4.742 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004119/0.003214, allocations: 151.4 kB / 320.1 MB, free: 4.594 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.462e-05/0.003298, allocations: 3.938 kB / 320.1 MB, free: 4.59 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 5.318e-05/0.003352, allocations: 7.875 kB / 320.1 MB, free: 4.582 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001412/0.003493, allocations: 11.92 kB / 320.1 MB, free: 4.57 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002604/0.003753, allocations: 27.91 kB / 320.1 MB, free: 4.543 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001214/0.003875, allocations: 35.86 kB / 320.2 MB, free: 4.508 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.003992, allocations: 23.89 kB / 320.2 MB, free: 4.484 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.836e-05/0.00405, allocations: 19.98 kB / 320.2 MB, free: 4.465 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.803e-05/0.004098, allocations: 7.922 kB / 320.2 MB, free: 4.457 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.886e-05/0.004127, allocations: 4 kB / 320.2 MB, free: 4.453 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.165e-05/0.004139, allocations: 8 kB / 320.2 MB, free: 4.445 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 5.779e-05/0.004197, allocations: 11.94 kB / 320.2 MB, free: 4.434 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 3.076e-05/0.004227, allocations: 7.984 kB / 320.2 MB, free: 4.426 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001353/0.004363, allocations: 43.88 kB / 320.3 MB, free: 4.383 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.004366, allocations: 0 / 320.3 MB, free: 4.383 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.104e-06/0.004368, allocations: 0 / 320.3 MB, free: 4.383 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.668e-06/0.004373, allocations: 0 / 320.3 MB, free: 4.383 MB / 282.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.0004365/0.00481, allocations: 297.3 kB / 320.6 MB, free: 4.062 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/0.004856, allocations: 12.92 kB / 320.6 MB, free: 4.051 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.246e-05/0.004899, allocations: 38.75 kB / 320.6 MB, free: 4.004 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.854e-05/0.004927, allocations: 12.83 kB / 320.6 MB, free: 3.992 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.005143, allocations: 137.6 kB / 320.8 MB, free: 3.832 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.148e-05/0.005154, allocations: 4.375 kB / 320.8 MB, free: 3.828 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.788e-06/0.005164, allocations: 4.375 kB / 320.8 MB, free: 3.824 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.005455, allocations: 117.5 kB / 320.9 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.216e-06/0.005463, allocations: 192 / 320.9 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.616e-06/0.005472, allocations: 384 / 320.9 MB, free: 3.691 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.005479, allocations: 12.12 kB / 320.9 MB, free: 3.68 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.555e-05/0.005545, allocations: 19.92 kB / 320.9 MB, free: 3.66 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003028/0.005848, allocations: 224.9 kB / 321.2 MB, free: 3.395 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001928/0.006041, allocations: 61.14 kB / 321.2 MB, free: 3.316 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.004e-05/0.006101, allocations: 25.77 kB / 321.2 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.934e-05/0.00612, allocations: 0 / 321.2 MB, free: 3.285 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.329e-05/0.006143, allocations: 38.5 kB / 321.3 MB, free: 3.238 MB / 282.7 MB Notification: Performance of pre-optimization done (n=4): time 6.081e-06/0.006149, allocations: 0 / 321.3 MB, free: 3.238 MB / 282.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002404/0.00639, allocations: 81.56 kB / 321.4 MB, free: 3.152 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.624e-05/0.006446, allocations: 77.11 kB / 321.4 MB, free: 3.059 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001189/0.006565, allocations: 141.5 kB / 321.6 MB, free: 2.91 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.34e-05/0.006578, allocations: 33.64 kB / 321.6 MB, free: 2.871 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.875e-05/0.006627, allocations: 84.08 kB / 321.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.096e-05/0.006638, allocations: 0 / 321.7 MB, free: 2.785 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.645e-05/0.006674, allocations: 21.67 kB / 321.7 MB, free: 2.758 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.006779, allocations: 314.8 kB / 322 MB, free: 2.441 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.51e-05/0.006815, allocations: 11.98 kB / 322 MB, free: 2.43 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.103e-05/0.006836, allocations: 12.06 kB / 322 MB, free: 2.418 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.999e-05/0.006886, allocations: 16.84 kB / 322.1 MB, free: 2.398 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.006888, allocations: 0 / 322.1 MB, free: 2.398 MB / 282.7 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.427e-05/0.006983, allocations: 49.62 kB / 322.1 MB, free: 2.344 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.007002, allocations: 4 kB / 322.1 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.007008, allocations: 0 / 322.1 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.625e-05/0.007024, allocations: 0 / 322.1 MB, free: 2.34 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.577e-05/0.00708, allocations: 16.02 kB / 322.1 MB, free: 2.324 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.483e-06/0.007086, allocations: 0 / 322.1 MB, free: 2.324 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.134e-05/0.007107, allocations: 4 kB / 322.1 MB, free: 2.32 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.401e-06/0.007113, allocations: 0 / 322.1 MB, free: 2.32 MB / 282.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: 1 (step.y) * 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 8.044e-05/0.007193, allocations: 113.8 kB / 322.2 MB, free: 2.199 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.974e-05/0.007273, allocations: 53.58 kB / 322.3 MB, free: 2.141 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.544e-05/0.007308, allocations: 8.344 kB / 322.3 MB, free: 2.125 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.369e-06/0.007313, allocations: 3.984 kB / 322.3 MB, free: 2.121 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.007317, allocations: 0 / 322.3 MB, free: 2.121 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.397e-06/0.007321, allocations: 0 / 322.3 MB, free: 2.121 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000162/0.007483, allocations: 144.7 kB / 322.4 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.007484, allocations: 0 / 322.4 MB, free: 1.938 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.612e-05/0.007541, allocations: 11.98 kB / 322.5 MB, free: 1.926 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.668e-06/0.007545, allocations: 3.938 kB / 322.5 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.007552, allocations: 0 / 322.5 MB, free: 1.922 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.988e-06/0.007556, allocations: 4 kB / 322.5 MB, free: 1.918 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.007559, allocations: 3.938 kB / 322.5 MB, free: 1.914 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001562/0.007715, allocations: 168.6 kB / 322.6 MB, free: 1.73 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.188e-05/0.007757, allocations: 19.89 kB / 322.6 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.007771, allocations: 0 / 322.6 MB, free: 1.711 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.105e-05/0.007822, allocations: 11.98 kB / 322.7 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.102e-05/0.007853, allocations: 0 / 322.7 MB, free: 1.699 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.007857, allocations: 0 / 322.7 MB, free: 1.699 MB / 282.7 MB Notification: Performance of sorting global known variables: time 7.044e-05/0.007928, allocations: 103.3 kB / 322.8 MB, free: 1.598 MB / 282.7 MB Notification: Performance of sort global known variables: time 1e-07/0.007928, allocations: 0 / 322.8 MB, free: 1.598 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002315/0.008159, allocations: 4 kB / 322.8 MB, free: 1.594 MB / 282.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: 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.0003869/0.008546, allocations: 0.7054 MB / 323.5 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0001057/0.008652, allocations: 19.98 kB / 323.5 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.008654, allocations: 0 / 323.5 MB, free: 0.8398 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 2.479e-05/0.008679, allocations: 23.81 kB / 323.5 MB, free: 0.8164 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003381/0.009017, allocations: 16.02 kB / 323.5 MB, free: 0.8008 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001051/0.01007, allocations: 1.25 MB / 324.8 MB, free: 15.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.945e-05/0.01014, allocations: 75.27 kB / 324.8 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.189e-05/0.01016, allocations: 8.156 kB / 324.9 MB, free: 15.36 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.43e-05/0.0102, allocations: 12.5 kB / 324.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.0102, allocations: 0 / 324.9 MB, free: 15.35 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01712/0.02732, allocations: 2.12 MB / 327 MB, free: 13.36 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.877/6.904, allocations: 8.062 kB / 327 MB, free: 13.35 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/Sample1/Sample1.csv","/var/lib/jenkins/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] "" 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.587828936055303]