Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.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.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|and1.y|sample.y|upSample1.y|upSample2.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 95.73 kB / 15.73 MB, free: 440 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.001851/0.001851, allocations: 178 kB / 16.61 MB, free: 6.426 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.629/1.629, allocations: 205.4 MB / 222.8 MB, free: 5.637 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.09503/0.09503, allocations: 12.59 MB / 283.6 MB, free: 8.707 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.0008077/0.0008082, allocations: 20 kB / 344.5 MB, free: 21.28 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1144/0.1153, allocations: 50.39 MB / 394.9 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample): time 0.00248/0.1178, allocations: 1.632 MB / 396.5 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001453/0.1193, allocations: 0.9485 MB / 397.5 MB, free: 204 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.1194, allocations: 3.938 kB / 397.5 MB, free: 200 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005597/0.12, allocations: 139.6 kB / 397.6 MB, free: 60 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000243/0.1202, allocations: 91.75 kB / 397.7 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000596/0.1208, allocations: 203.4 kB / 397.9 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002057/0.121, allocations: 127.8 kB / 398 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.1212, allocations: 44.22 kB / 398.1 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001091/0.1213, allocations: 71.69 kB / 398.1 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001158/0.1214, allocations: 75.61 kB / 398.2 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.1214, allocations: 8 kB / 398.2 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.1215, allocations: 31.98 kB / 398.3 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.588e-05/0.1216, allocations: 43.83 kB / 398.3 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.301e-05/0.1217, allocations: 57.58 kB / 398.4 MB, free: 15.31 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002206/0.1219, allocations: 183.8 kB / 398.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.1219, allocations: 4 kB / 398.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.1219, allocations: 0 / 398.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.1219, allocations: 0 / 398.5 MB, free: 15.13 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.000693/0.1226, allocations: 0.5039 MB / 399 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.704e-05/0.1227, allocations: 12.03 kB / 399.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.395e-05/0.1227, allocations: 27.72 kB / 399.1 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.1231, allocations: 273.5 kB / 399.3 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.412e-05/0.1231, allocations: 8 kB / 399.4 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.56e-05/0.1231, allocations: 12 kB / 399.4 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004933/0.1236, allocations: 306.1 kB / 399.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.1237, allocations: 0 / 399.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.111e-05/0.1237, allocations: 4 kB / 399.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/0.1237, allocations: 4 kB / 399.7 MB, free: 13.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001325/0.1238, allocations: 59.91 kB / 399.7 MB, free: 13.81 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004914/0.1243, allocations: 386.3 kB / 400.1 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.1247, allocations: 176 kB / 400.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.095e-05/0.1247, allocations: 8.219 kB / 400.3 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001444/0.1248, allocations: 71.52 kB / 400.4 MB, free: 13.09 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 1.823e-06/0.1249, allocations: 7.938 kB / 400.4 MB, free: 13.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0004385/0.1253, allocations: 225.5 kB / 400.6 MB, free: 12.85 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.819e-05/0.1254, allocations: 144.5 kB / 400.7 MB, free: 12.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002576/0.1257, allocations: 280.8 kB / 401 MB, free: 12.4 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.1257, allocations: 25.7 kB / 401 MB, free: 12.37 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.254e-05/0.1258, allocations: 116.7 kB / 401.1 MB, free: 12.25 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.047e-05/0.1258, allocations: 39.62 kB / 401.2 MB, free: 12.21 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.845e-06/0.1258, allocations: 8 kB / 401.2 MB, free: 12.2 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001129/0.126, allocations: 330.8 kB / 401.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.71e-05/0.126, allocations: 36.45 kB / 401.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001492/0.1262, allocations: 174 kB / 401.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.1263, allocations: 59.97 kB / 401.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1263, allocations: 0 / 401.8 MB, free: 11.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0003085/0.1266, allocations: 221 kB / 402 MB, free: 11.32 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.821e-05/0.1267, allocations: 8 kB / 402 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.041e-05/0.1267, allocations: 4 kB / 402 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.676e-05/0.1267, allocations: 12.47 kB / 402 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.316e-05/0.1268, allocations: 23.94 kB / 402 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.1268, allocations: 15.98 kB / 402.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.1269, allocations: 19.84 kB / 402.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.279e-05/0.1269, allocations: 8 kB / 402.1 MB, free: 11.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * 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.0001326/0.1271, allocations: 168.1 kB / 402.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.1272, allocations: 125.3 kB / 402.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.1273, allocations: 33.64 kB / 402.4 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.1273, allocations: 11.95 kB / 402.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.1273, allocations: 0 / 402.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.46e-06/0.1273, allocations: 4 kB / 402.4 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001977/0.1275, allocations: 241.5 kB / 402.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.1276, allocations: 0 / 402.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.631e-05/0.1276, allocations: 11.98 kB / 402.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.1276, allocations: 0 / 402.7 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.424e-05/0.1276, allocations: 8 kB / 402.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.964e-06/0.1276, allocations: 0 / 402.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.1276, allocations: 7.953 kB / 402.7 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000325/0.128, allocations: 245.3 kB / 402.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.1281, allocations: 124.7 kB / 403 MB, free: 10.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.086e-05/0.1281, allocations: 15.95 kB / 403.1 MB, free: 10.14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.069e-05/0.1282, allocations: 8 kB / 403.1 MB, free: 10.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.371e-05/0.1283, allocations: 11.98 kB / 403.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.964e-05/0.1283, allocations: 11.94 kB / 403.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001623/0.1285, allocations: 192.5 kB / 403.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1285, allocations: 0 / 403.3 MB, free: 9.922 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002971/0.1288, allocations: 43.94 kB / 403.3 MB, free: 9.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.0008525/0.1296, allocations: 419.5 kB / 403.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002613/0.1299, allocations: 147.7 kB / 403.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1299, allocations: 0 / 403.9 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.648e-05/0.13, allocations: 31.92 kB / 403.9 MB, free: 9.285 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000385/0.1304, allocations: 101 kB / 404 MB, free: 9.184 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005719/0.131, allocations: 425.6 kB / 404.4 MB, free: 8.734 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.1312, allocations: 0.756 MB / 405.2 MB, free: 7.953 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.041e-05/0.1313, allocations: 38.14 kB / 405.2 MB, free: 7.918 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.367e-05/0.1314, allocations: 23.44 kB / 405.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1314, allocations: 0 / 405.2 MB, free: 7.898 MB / 302.1 MB Notification: Performance of Templates: time 0.005922/0.1373, allocations: 2.725 MB / 408 MB, free: 5.172 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches