Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|sample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001235/0.001236, allocations: 98.72 kB / 16.02 MB, free: 5.883 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001131/0.001132, allocations: 195.1 kB / 16.95 MB, free: 5.727 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.641/1.641, allocations: 205.1 MB / 222.8 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07204/0.07204, allocations: 12.59 MB / 282.7 MB, free: 8.809 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 87.86 kB / 343 MB, free: 21.09 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09794/0.09946, allocations: 49.41 MB / 392.4 MB, free: 3.598 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.003042/0.1026, allocations: 1.562 MB / 393.9 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000375/0.103, allocations: 139.5 kB / 394.1 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.886e-05/0.1031, allocations: 4 kB / 394.1 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.169e-05/0.1031, allocations: 3.938 kB / 394.1 MB, free: 1.871 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001572/0.1033, allocations: 11.92 kB / 394.1 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002438/0.1035, allocations: 27.98 kB / 394.1 MB, free: 1.832 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001021/0.1037, allocations: 39.84 kB / 394.2 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001098/0.1038, allocations: 12 kB / 394.2 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.612e-05/0.1038, allocations: 15.92 kB / 394.2 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.397e-05/0.1039, allocations: 7.938 kB / 394.2 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.031e-05/0.1039, allocations: 4 kB / 394.2 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.198e-05/0.1039, allocations: 4 kB / 394.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.294e-05/0.104, allocations: 15.92 kB / 394.2 MB, free: 1.734 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.964e-05/0.104, allocations: 31.8 kB / 394.3 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001057/0.1041, allocations: 47.7 kB / 394.3 MB, free: 1.656 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.1041, allocations: 0 / 394.3 MB, free: 1.656 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.1041, allocations: 4 kB / 394.3 MB, free: 1.652 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.749e-06/0.1042, allocations: 0 / 394.3 MB, free: 1.652 MB / 286.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.0004061/0.1046, allocations: 363.5 kB / 394.7 MB, free: 1.246 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1046, allocations: 8.031 kB / 394.7 MB, free: 1.238 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.058e-05/0.1046, allocations: 8.844 kB / 394.7 MB, free: 1.23 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001697/0.1048, allocations: 196.1 kB / 394.9 MB, free: 1 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.047e-06/0.1048, allocations: 4.375 kB / 394.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.044e-05/0.1049, allocations: 4.375 kB / 394.9 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002641/0.1051, allocations: 113.5 kB / 395 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.1051, allocations: 192 / 395 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.518e-05/0.1052, allocations: 7.938 kB / 395 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.501e-06/0.1052, allocations: 4 kB / 395 MB, free: 0.8516 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.915e-05/0.1052, allocations: 19.98 kB / 395 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003023/0.1056, allocations: 253.8 kB / 395.3 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001967/0.1058, allocations: 146.2 kB / 395.4 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.262e-05/0.1058, allocations: 29.77 kB / 395.4 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.604e-05/0.1059, allocations: 0 / 395.4 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.725e-05/0.1059, allocations: 38.5 kB / 395.5 MB, free: 276 kB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.1059, allocations: 0 / 395.5 MB, free: 276 kB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002454/0.1061, allocations: 81.52 kB / 395.6 MB, free: 188 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.1062, allocations: 77.11 kB / 395.6 MB, free: 92 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000134/0.1063, allocations: 134 kB / 395.8 MB, free: 15.95 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.492e-05/0.1064, allocations: 33.64 kB / 395.8 MB, free: 15.91 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.457e-05/0.1064, allocations: 88.12 kB / 395.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.035e-05/0.1064, allocations: 3.906 kB / 395.9 MB, free: 15.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.381e-05/0.1065, allocations: 21.72 kB / 395.9 MB, free: 15.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001242/0.1066, allocations: 323 kB / 396.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.571e-05/0.1067, allocations: 4 kB / 396.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.649e-05/0.1067, allocations: 35.42 kB / 396.3 MB, free: 15.41 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.637e-05/0.1068, allocations: 47.36 kB / 396.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1068, allocations: 0 / 396.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001209/0.1069, allocations: 65.56 kB / 396.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.829e-05/0.107, allocations: 4 kB / 396.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.107, allocations: 7.938 kB / 396.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.983e-05/0.107, allocations: 8.219 kB / 396.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.126e-05/0.1071, allocations: 11.98 kB / 396.4 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.304e-06/0.1071, allocations: 8.109 kB / 396.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.205e-05/0.1071, allocations: 7.906 kB / 396.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.301e-06/0.1071, allocations: 0 / 396.4 MB, free: 15.23 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: 4 (step.y,sample.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 9.384e-05/0.1072, allocations: 121.8 kB / 396.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.498e-05/0.1073, allocations: 49.69 kB / 396.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.84e-05/0.1074, allocations: 16.17 kB / 396.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.1074, allocations: 0 / 396.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.082e-06/0.1074, allocations: 4 kB / 396.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.1074, allocations: 0 / 396.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001672/0.1076, allocations: 173.6 kB / 396.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.1076, allocations: 0 / 396.8 MB, free: 14.81 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.292e-05/0.1076, allocations: 8 kB / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.1076, allocations: 0 / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.1076, allocations: 0 / 396.8 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.2e-06/0.1077, allocations: 7.984 kB / 396.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.1077, allocations: 0 / 396.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001598/0.1078, allocations: 168.2 kB / 397 MB, free: 14.61 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.684e-05/0.1079, allocations: 89 kB / 397 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.463e-05/0.1079, allocations: 7.938 kB / 397 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.569e-05/0.108, allocations: 3.984 kB / 397.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.441e-05/0.108, allocations: 7.938 kB / 397.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-06/0.108, allocations: 4 kB / 397.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.436e-05/0.1081, allocations: 99.27 kB / 397.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1081, allocations: 0 / 397.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000214/0.1083, allocations: 8 kB / 397.2 MB, free: 14.38 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: 4 (step.y,assignClock.u,assignClock.y,sample.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.0001019/0.1084, allocations: 103.2 kB / 397.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001288/0.1086, allocations: 31.92 kB / 397.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1086, allocations: 0 / 397.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.047e-05/0.1086, allocations: 4 kB / 397.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003977/0.109, allocations: 28.94 kB / 397.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003064/0.1093, allocations: 182.5 kB / 397.5 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000234/0.1096, allocations: 0.6922 MB / 398.2 MB, free: 13.28 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.351e-05/0.1096, allocations: 4 kB / 398.2 MB, free: 13.27 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.438e-05/0.1096, allocations: 11.44 kB / 398.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1096, allocations: 4 kB / 398.2 MB, free: 13.26 MB / 302.1 MB Notification: Performance of Templates: time 0.002483/0.1121, allocations: 482.1 kB / 398.7 MB, free: 12.79 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches