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/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001451/0.001451, allocations: 168.9 kB / 16.8 MB, free: 4.992 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.603/1.603, allocations: 205.4 MB / 223 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007688/0.0007692, allocations: 96.3 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09814/0.09814, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003836/0.0003837, allocations: 15.98 kB / 393.3 MB, free: 65.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09087/0.09127, allocations: 50.37 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.001404/0.0927, allocations: 1.227 MB / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002997/0.09302, allocations: 139.6 kB / 445.1 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.297e-05/0.09311, allocations: 3.938 kB / 445.1 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.385e-05/0.09315, allocations: 0 / 445.1 MB, free: 14.05 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001175/0.09328, allocations: 7.938 kB / 445.1 MB, free: 14.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002243/0.09351, allocations: 27.98 kB / 445.1 MB, free: 14.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.862e-05/0.09358, allocations: 35.91 kB / 445.1 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001294/0.09372, allocations: 19.92 kB / 445.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.594e-05/0.09375, allocations: 7.938 kB / 445.2 MB, free: 13.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.058e-05/0.0938, allocations: 15.92 kB / 445.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.633e-05/0.09382, allocations: 0 / 445.2 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.12e-05/0.09384, allocations: 7.938 kB / 445.2 MB, free: 13.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.763e-05/0.09389, allocations: 7.938 kB / 445.2 MB, free: 13.92 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.958e-05/0.09394, allocations: 41.58 kB / 445.2 MB, free: 13.88 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.451e-05/0.09401, allocations: 31.94 kB / 445.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.09402, allocations: 3.938 kB / 445.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.073e-06/0.09402, allocations: 3.984 kB / 445.3 MB, free: 13.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.398e-06/0.09403, allocations: 0 / 445.3 MB, free: 13.84 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.0003561/0.0944, allocations: 359.5 kB / 445.6 MB, free: 13.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.877e-05/0.09444, allocations: 12.03 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.046e-05/0.09448, allocations: 8.844 kB / 445.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001422/0.09463, allocations: 184.2 kB / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.799e-06/0.09464, allocations: 384 / 445.8 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.05e-05/0.09466, allocations: 8.375 kB / 445.8 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002586/0.09492, allocations: 125.5 kB / 445.9 MB, free: 13.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.09495, allocations: 4.188 kB / 446 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.408e-06/0.09496, allocations: 3.938 kB / 446 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.89e-06/0.09497, allocations: 0 / 446 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.452e-05/0.09505, allocations: 23.98 kB / 446 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002619/0.09532, allocations: 265.7 kB / 446.2 MB, free: 12.7 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.09551, allocations: 138.2 kB / 446.4 MB, free: 12.53 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.728e-05/0.09557, allocations: 33.77 kB / 446.4 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.69e-05/0.0956, allocations: 0 / 446.4 MB, free: 12.49 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.009e-05/0.09562, allocations: 38.5 kB / 446.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.09563, allocations: 0 / 446.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002284/0.09587, allocations: 81.61 kB / 446.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.176e-05/0.09592, allocations: 85.09 kB / 446.6 MB, free: 12.26 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.468e-05/0.09602, allocations: 145.9 kB / 446.7 MB, free: 12.1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 9.077e-06/0.09603, allocations: 25.7 kB / 446.8 MB, free: 12.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.388e-05/0.09607, allocations: 88.08 kB / 446.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.966e-06/0.09609, allocations: 4 kB / 446.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.985e-06/0.0961, allocations: 0 / 446.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.948e-05/0.09616, allocations: 319 kB / 447.2 MB, free: 11.66 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.646e-05/0.09621, allocations: 12 kB / 447.2 MB, free: 11.64 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.832e-05/0.09625, allocations: 35.59 kB / 447.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.185e-05/0.09633, allocations: 51.36 kB / 447.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.09634, allocations: 0 / 447.3 MB, free: 11.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001064/0.09645, allocations: 77.5 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.274e-05/0.09647, allocations: 8.125 kB / 447.4 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.09648, allocations: 7.984 kB / 447.4 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.0965, allocations: 4 kB / 447.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.827e-05/0.09656, allocations: 8 kB / 447.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.09658, allocations: 0 / 447.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.333e-05/0.09662, allocations: 7.906 kB / 447.4 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.192e-06/0.09663, allocations: 4 kB / 447.4 MB, free: 11.41 MB / 298.7 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 6.795e-05/0.0967, allocations: 122.6 kB / 447.5 MB, free: 11.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.904e-05/0.09677, allocations: 53.62 kB / 447.6 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.316e-05/0.09681, allocations: 12.25 kB / 447.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.533e-06/0.09682, allocations: 0 / 447.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.09682, allocations: 0 / 447.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.09683, allocations: 0 / 447.6 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001304/0.09697, allocations: 173.5 kB / 447.7 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.09698, allocations: 7.938 kB / 447.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.493e-05/0.09703, allocations: 8 kB / 447.8 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.09704, allocations: 3.984 kB / 447.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.352e-06/0.09705, allocations: 0 / 447.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.09706, allocations: 4 kB / 447.8 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.09706, allocations: 7.984 kB / 447.8 MB, free: 10.96 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001361/0.0972, allocations: 168.3 kB / 447.9 MB, free: 10.78 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.711e-05/0.09725, allocations: 89.02 kB / 448 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.343e-05/0.09727, allocations: 3.984 kB / 448 MB, free: 10.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.397e-05/0.09733, allocations: 8 kB / 448 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.233e-05/0.09737, allocations: 4 kB / 448 MB, free: 10.66 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.737e-06/0.09738, allocations: 0 / 448 MB, free: 10.66 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.725e-05/0.09743, allocations: 107.2 kB / 448.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09744, allocations: 3.938 kB / 448.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002415/0.09768, allocations: 4 kB / 448.2 MB, free: 10.54 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: 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 7.893e-05/0.09777, allocations: 91.25 kB / 448.2 MB, free: 10.45 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001203/0.0979, allocations: 35.92 kB / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.09791, allocations: 0 / 448.3 MB, free: 10.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.114e-05/0.09794, allocations: 15.98 kB / 448.3 MB, free: 10.39 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.09828, allocations: 23.97 kB / 448.3 MB, free: 10.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002857/0.09858, allocations: 207.3 kB / 448.5 MB, free: 10.13 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001432/0.09873, allocations: 0.6887 MB / 449.2 MB, free: 9.414 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.225e-05/0.09876, allocations: 11.44 kB / 449.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.09877, allocations: 0 / 449.2 MB, free: 9.402 MB / 298.7 MB Notification: Performance of Templates: time 0.001768/0.1005, allocations: 0.6802 MB / 449.9 MB, free: 8.723 MB / 298.7 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/jenkins1/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