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.009048/0.009048, allocations: 93.11 kB / 15.91 MB, free: 6.281 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.001465/0.001465, allocations: 200.2 kB / 16.84 MB, free: 6.195 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.752/1.752, allocations: 205.1 MB / 222.7 MB, free: 4.973 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.07919/0.07919, allocations: 12.59 MB / 282.6 MB, free: 9.121 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.00167/0.001671, allocations: 80.5 kB / 342.8 MB, free: 21.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1193/0.121, allocations: 49.4 MB / 392.2 MB, free: 3.75 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Sample1): time 0.003367/0.1244, allocations: 1.562 MB / 393.7 MB, free: 2.168 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003739/0.1248, allocations: 139.5 kB / 393.9 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.686e-05/0.1249, allocations: 4 kB / 393.9 MB, free: 2.027 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.107e-05/0.125, allocations: 7.938 kB / 393.9 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001359/0.1251, allocations: 7.984 kB / 393.9 MB, free: 2.012 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002425/0.1253, allocations: 35.91 kB / 393.9 MB, free: 1.977 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.213e-05/0.1254, allocations: 27.88 kB / 394 MB, free: 1.949 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.1256, allocations: 15.98 kB / 394 MB, free: 1.934 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.437e-05/0.1256, allocations: 11.94 kB / 394 MB, free: 1.922 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.926e-05/0.1257, allocations: 11.92 kB / 394 MB, free: 1.91 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.1257, allocations: 3.984 kB / 394 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.378e-05/0.1257, allocations: 8 kB / 394 MB, free: 1.898 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 6.255e-05/0.1258, allocations: 15.92 kB / 394 MB, free: 1.883 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.053e-05/0.1258, allocations: 19.81 kB / 394.1 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001004/0.1259, allocations: 39.83 kB / 394.1 MB, free: 1.824 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.1259, allocations: 0 / 394.1 MB, free: 1.824 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.424e-06/0.1259, allocations: 4 kB / 394.1 MB, free: 1.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.36e-06/0.1259, allocations: 0 / 394.1 MB, free: 1.82 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.0004854/0.1264, allocations: 363.5 kB / 394.4 MB, free: 1.414 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.1265, allocations: 8.031 kB / 394.5 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.019e-05/0.1265, allocations: 12.84 kB / 394.5 MB, free: 1.395 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002536/0.1268, allocations: 200 kB / 394.7 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.564e-06/0.1268, allocations: 384 / 394.7 MB, free: 1.16 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.55e-05/0.1268, allocations: 8.375 kB / 394.7 MB, free: 1.152 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003018/0.1271, allocations: 113.5 kB / 394.8 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.1272, allocations: 4.188 kB / 394.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.478e-05/0.1272, allocations: 11.92 kB / 394.8 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.1272, allocations: 0 / 394.8 MB, free: 1.008 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.662e-05/0.1273, allocations: 23.92 kB / 394.8 MB, free: 0.9844 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004343/0.1277, allocations: 245.8 kB / 395.1 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.128, allocations: 154.1 kB / 395.2 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.339e-05/0.128, allocations: 25.78 kB / 395.2 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.718e-05/0.1281, allocations: 0 / 395.2 MB, free: 484 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.1281, allocations: 38.55 kB / 395.3 MB, free: 436 kB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.1281, allocations: 0 / 395.3 MB, free: 436 kB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002576/0.1284, allocations: 85.5 kB / 395.4 MB, free: 344 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.72e-05/0.1284, allocations: 81.11 kB / 395.4 MB, free: 244 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.1286, allocations: 134 kB / 395.6 MB, free: 96 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.1286, allocations: 29.7 kB / 395.6 MB, free: 60 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.594e-05/0.1287, allocations: 84.14 kB / 395.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.31e-05/0.1287, allocations: 11.83 kB / 395.7 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.516e-05/0.1287, allocations: 21.84 kB / 395.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001202/0.1289, allocations: 314.8 kB / 396 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.167e-05/0.1289, allocations: 11.98 kB / 396 MB, free: 15.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.164e-05/0.129, allocations: 31.42 kB / 396.1 MB, free: 15.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.326e-05/0.129, allocations: 47.36 kB / 396.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.1291, allocations: 0 / 396.1 MB, free: 15.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001185/0.1292, allocations: 69.56 kB / 396.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.1292, allocations: 4 kB / 396.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.1292, allocations: 0 / 396.2 MB, free: 15.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.1292, allocations: 4 kB / 396.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.956e-05/0.1293, allocations: 16.11 kB / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.925e-06/0.1293, allocations: 0 / 396.2 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.339e-05/0.1294, allocations: 11.84 kB / 396.2 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.002e-06/0.1294, allocations: 0 / 396.2 MB, free: 15.39 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 8.933e-05/0.1295, allocations: 121.8 kB / 396.3 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.302e-05/0.1295, allocations: 41.7 kB / 396.4 MB, free: 15.22 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.64e-05/0.1296, allocations: 16.23 kB / 396.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.1296, allocations: 0 / 396.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.1296, allocations: 0 / 396.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1296, allocations: 8 kB / 396.4 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001761/0.1298, allocations: 173.6 kB / 396.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.1298, allocations: 0 / 396.6 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.657e-05/0.1299, allocations: 8 kB / 396.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1299, allocations: 3.938 kB / 396.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.1299, allocations: 0 / 396.6 MB, free: 14.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.3e-06/0.1299, allocations: 11.88 kB / 396.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1299, allocations: 0 / 396.6 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001702/0.1301, allocations: 168.2 kB / 396.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.778e-05/0.1301, allocations: 93 kB / 396.8 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.533e-05/0.1302, allocations: 4 kB / 396.8 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.912e-05/0.1302, allocations: 3.984 kB / 396.9 MB, free: 14.65 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.482e-05/0.1303, allocations: 4 kB / 396.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.1303, allocations: 0 / 396.9 MB, free: 14.64 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.707e-05/0.1304, allocations: 107.3 kB / 397 MB, free: 14.54 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1304, allocations: 0 / 397 MB, free: 14.54 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002168/0.1306, allocations: 8 kB / 397 MB, free: 14.53 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.0001038/0.1307, allocations: 95.19 kB / 397.1 MB, free: 14.43 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001277/0.1308, allocations: 27.97 kB / 397.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1308, allocations: 4 kB / 397.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.163e-05/0.1309, allocations: 7.938 kB / 397.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003998/0.1313, allocations: 32.27 kB / 397.1 MB, free: 14.36 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003866/0.1317, allocations: 168.1 kB / 397.3 MB, free: 14.17 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002672/0.132, allocations: 0.6926 MB / 398 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.868e-05/0.132, allocations: 0.5156 kB / 398 MB, free: 13.45 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.59e-05/0.132, allocations: 19.38 kB / 398 MB, free: 13.43 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1321, allocations: 0 / 398 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Templates: time 0.002644/0.1347, allocations: 456 kB / 398.5 MB, free: 12.99 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