Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.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.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001293/0.001293, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002276/0.002276, allocations: 176.5 kB / 16.63 MB, free: 6.887 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.701/1.701, allocations: 205.4 MB / 222.8 MB, free: 5.633 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.1011/0.1011, allocations: 12.59 MB / 283.7 MB, free: 8.68 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.0008123/0.0008127, allocations: 27.98 kB / 344.5 MB, free: 21.24 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1223, allocations: 50.37 MB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.003163/0.1256, allocations: 1.564 MB / 396.5 MB, free: 1.211 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002329/0.1279, allocations: 0.9408 MB / 397.4 MB, free: 268 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002323/0.1282, allocations: 7.938 kB / 397.4 MB, free: 260 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007757/0.129, allocations: 127.7 kB / 397.6 MB, free: 132 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003842/0.1294, allocations: 99.62 kB / 397.6 MB, free: 32 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006879/0.1301, allocations: 155.7 kB / 397.8 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002935/0.1304, allocations: 175.4 kB / 398 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001319/0.1306, allocations: 25.55 kB / 398 MB, free: 15.68 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001353/0.1307, allocations: 59.7 kB / 398.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001484/0.1309, allocations: 71.62 kB / 398.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.519e-05/0.1309, allocations: 4 kB / 398.1 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001621/0.1311, allocations: 39.97 kB / 398.2 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.185e-05/0.1311, allocations: 39.84 kB / 398.2 MB, free: 15.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.178e-05/0.1312, allocations: 49.64 kB / 398.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000247/0.1315, allocations: 155.9 kB / 398.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1315, allocations: 3.938 kB / 398.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.1315, allocations: 0 / 398.4 MB, free: 15.26 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.479e-06/0.1315, allocations: 0 / 398.4 MB, free: 15.26 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0007949/0.1323, allocations: 496.1 kB / 398.9 MB, free: 14.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.348e-05/0.1323, allocations: 8.031 kB / 398.9 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.574e-05/0.1324, allocations: 31.72 kB / 398.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.1328, allocations: 253.7 kB / 399.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.052e-05/0.1328, allocations: 7.938 kB / 399.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.841e-05/0.1328, allocations: 12 kB / 399.2 MB, free: 14.37 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003435/0.1332, allocations: 155.5 kB / 399.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.1332, allocations: 7.938 kB / 399.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.593e-05/0.1332, allocations: 4 kB / 399.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1332, allocations: 0 / 399.4 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.1334, allocations: 39.92 kB / 399.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005718/0.1339, allocations: 462.4 kB / 399.9 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002258/0.1342, allocations: 130.5 kB / 400 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001045/0.1343, allocations: 59.42 kB / 400 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.611e-05/0.1343, allocations: 4 kB / 400 MB, free: 13.39 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001798/0.1345, allocations: 97.09 kB / 400.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.212e-06/0.1345, allocations: 0 / 400.1 MB, free: 13.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.000411/0.1349, allocations: 157.3 kB / 400.3 MB, free: 13.12 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001257/0.1351, allocations: 158.2 kB / 400.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002992/0.1354, allocations: 272.8 kB / 400.7 MB, free: 12.65 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.978e-05/0.1354, allocations: 26.08 kB / 400.7 MB, free: 12.62 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001114/0.1355, allocations: 124.4 kB / 400.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.276e-05/0.1356, allocations: 15.81 kB / 400.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.364e-06/0.1356, allocations: 4 kB / 400.9 MB, free: 12.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1357, allocations: 330.8 kB / 401.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.531e-05/0.1358, allocations: 19.98 kB / 401.2 MB, free: 12.12 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001101/0.1359, allocations: 82.78 kB / 401.3 MB, free: 12.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.157e-05/0.136, allocations: 28 kB / 401.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.136, allocations: 0 / 401.3 MB, free: 11.99 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002115/0.1362, allocations: 121.5 kB / 401.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.1363, allocations: 13.28 kB / 401.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.552e-06/0.1363, allocations: 0 / 401.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.1363, allocations: 4 kB / 401.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.273e-05/0.1364, allocations: 19.92 kB / 401.5 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.333e-05/0.1364, allocations: 7.953 kB / 401.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.676e-05/0.1365, allocations: 11.84 kB / 401.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.989e-06/0.1365, allocations: 4 kB / 401.5 MB, free: 11.8 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001528/0.1367, allocations: 153.9 kB / 401.7 MB, free: 11.64 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.812e-05/0.1368, allocations: 65.44 kB / 401.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.174e-05/0.1369, allocations: 29.69 kB / 401.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1369, allocations: 4 kB / 401.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.1369, allocations: 4 kB / 401.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.1369, allocations: 3.953 kB / 401.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000256/0.1372, allocations: 229.5 kB / 402 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1372, allocations: 0 / 402 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.742e-05/0.1372, allocations: 7.938 kB / 402 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.1372, allocations: 4 kB / 402 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.1372, allocations: 8.062 kB / 402 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.601e-06/0.1372, allocations: 7.984 kB / 402 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1373, allocations: 3.938 kB / 402 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002721/0.1375, allocations: 167.3 kB / 402.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.1377, allocations: 120.8 kB / 402.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.358e-05/0.1377, allocations: 4 kB / 402.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.41e-05/0.1378, allocations: 7.984 kB / 402.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.692e-05/0.1378, allocations: 4 kB / 402.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.1379, allocations: 4 kB / 402.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002206/0.1381, allocations: 200.5 kB / 402.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1381, allocations: 0 / 402.5 MB, free: 10.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002752/0.1384, allocations: 39.89 kB / 402.6 MB, free: 10.65 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0009877/0.1394, allocations: 423.7 kB / 403 MB, free: 10.22 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002518/0.1396, allocations: 79.84 kB / 403 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.1396, allocations: 0 / 403 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.688e-05/0.1397, allocations: 27.98 kB / 403.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004385/0.1402, allocations: 69.56 kB / 403.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000635/0.1408, allocations: 356.8 kB / 403.5 MB, free: 9.668 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003449/0.1412, allocations: 0.7244 MB / 404.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.618e-05/0.1413, allocations: 21.55 kB / 404.2 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.396e-05/0.1413, allocations: 23.42 kB / 404.3 MB, free: 8.875 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1413, allocations: 4 kB / 404.3 MB, free: 8.871 MB / 302.1 MB Notification: Performance of Templates: time 0.006439/0.1478, allocations: 2.299 MB / 406.6 MB, free: 6.566 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches