Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.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.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock.y|step.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001671/0.001671, allocations: 176.1 kB / 16.77 MB, free: 4.922 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.456/1.456, allocations: 205.4 MB / 222.9 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.0008182/0.0008182, allocations: 90.36 kB / 271.3 MB, free: 8.238 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.06488/0.06488, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003971/0.0003971, allocations: 16 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06704/0.06746, allocations: 50.38 MB / 443 MB, free: 16.13 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1): time 0.001182/0.06866, allocations: 1.203 MB / 444.2 MB, free: 14.91 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002403/0.06892, allocations: 131.7 kB / 444.3 MB, free: 14.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.855e-05/0.06899, allocations: 7.938 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.388e-05/0.06902, allocations: 0 / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.092e-05/0.06912, allocations: 7.922 kB / 444.3 MB, free: 14.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000181/0.06931, allocations: 31.97 kB / 444.3 MB, free: 14.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 5.938e-05/0.06937, allocations: 31.86 kB / 444.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.737e-05/0.06946, allocations: 12 kB / 444.4 MB, free: 14.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.448e-05/0.06949, allocations: 7.984 kB / 444.4 MB, free: 14.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.421e-05/0.06952, allocations: 19.86 kB / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.06954, allocations: 4 kB / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.627e-06/0.06955, allocations: 0 / 444.4 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.863e-05/0.06958, allocations: 11.92 kB / 444.4 MB, free: 14.65 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.957e-05/0.06962, allocations: 45.52 kB / 444.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.018e-05/0.06968, allocations: 23.95 kB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.745e-06/0.06968, allocations: 0 / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.06969, allocations: 4 kB / 444.5 MB, free: 14.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.876e-06/0.0697, allocations: 0 / 444.5 MB, free: 14.57 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.0002626/0.06996, allocations: 355.6 kB / 444.8 MB, free: 14.17 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.645e-05/0.07001, allocations: 8.031 kB / 444.8 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.064e-05/0.07005, allocations: 12.84 kB / 444.9 MB, free: 14.15 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.07017, allocations: 192.1 kB / 445 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.606e-05/0.07019, allocations: 4.375 kB / 445.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.396e-06/0.0702, allocations: 4.359 kB / 445.1 MB, free: 13.92 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001915/0.0704, allocations: 117.5 kB / 445.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.222e-06/0.07042, allocations: 192 / 445.2 MB, free: 13.79 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.155e-06/0.07043, allocations: 7.938 kB / 445.2 MB, free: 13.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.07044, allocations: 4 kB / 445.2 MB, free: 13.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.292e-05/0.0705, allocations: 15.98 kB / 445.2 MB, free: 13.76 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001991/0.07071, allocations: 257.8 kB / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001046/0.07082, allocations: 138.2 kB / 445.6 MB, free: 13.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.343e-05/0.07087, allocations: 29.77 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.614e-05/0.0709, allocations: 4 kB / 445.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.262e-05/0.07092, allocations: 34.5 kB / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.07092, allocations: 0 / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001759/0.0711, allocations: 73.52 kB / 445.7 MB, free: 13.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.604e-05/0.07114, allocations: 85.23 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.029e-05/0.07121, allocations: 133.8 kB / 445.9 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.49e-06/0.07123, allocations: 25.7 kB / 446 MB, free: 12.85 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.381e-05/0.07126, allocations: 84.14 kB / 446 MB, free: 12.76 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.809e-06/0.07127, allocations: 15.83 kB / 446.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.245e-06/0.07128, allocations: 0 / 446.1 MB, free: 12.75 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.534e-05/0.07132, allocations: 314.8 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.643e-05/0.07135, allocations: 4 kB / 446.4 MB, free: 12.43 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.879e-05/0.07139, allocations: 39.42 kB / 446.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.97e-05/0.07144, allocations: 43.36 kB / 446.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.07145, allocations: 4 kB / 446.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.591e-05/0.07154, allocations: 61.56 kB / 446.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.09e-05/0.07156, allocations: 11.94 kB / 446.5 MB, free: 12.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.07157, allocations: 7.875 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.926e-06/0.07158, allocations: 0 / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.949e-06/0.0716, allocations: 4 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.069e-06/0.07161, allocations: 3.984 kB / 446.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.948e-05/0.07164, allocations: 8.125 kB / 446.6 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.919e-06/0.07165, allocations: 0 / 446.6 MB, free: 12.21 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.104e-05/0.07171, allocations: 126.4 kB / 446.7 MB, free: 12.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.194e-05/0.07177, allocations: 45.61 kB / 446.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.335e-05/0.0718, allocations: 19.83 kB / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.0718, allocations: 0 / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.916e-06/0.07181, allocations: 0 / 446.7 MB, free: 12.01 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.07182, allocations: 4.328 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001097/0.07193, allocations: 169.6 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.07194, allocations: 4 kB / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.852e-06/0.07195, allocations: 0 / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.332e-06/0.07196, allocations: 0 / 446.9 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.721e-06/0.07197, allocations: 4 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.07198, allocations: 0 / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.07198, allocations: 3.984 kB / 446.9 MB, free: 11.78 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001041/0.07209, allocations: 168.2 kB / 447.1 MB, free: 11.59 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.308e-05/0.07213, allocations: 97 kB / 447.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.179e-05/0.07215, allocations: 7.938 kB / 447.2 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.937e-05/0.0722, allocations: 0 / 447.2 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.169e-05/0.07223, allocations: 4 kB / 447.2 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.846e-06/0.07224, allocations: 0 / 447.2 MB, free: 11.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.8e-05/0.07228, allocations: 99.27 kB / 447.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.07229, allocations: 0 / 447.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002012/0.07249, allocations: 4 kB / 447.3 MB, free: 11.37 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 (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 5.916e-05/0.07256, allocations: 103.2 kB / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.387e-05/0.07266, allocations: 27.92 kB / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.07267, allocations: 0 / 447.4 MB, free: 11.23 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 2.273e-05/0.0727, allocations: 8 kB / 447.4 MB, free: 11.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002916/0.07299, allocations: 27.95 kB / 447.5 MB, free: 11.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002269/0.07323, allocations: 191.5 kB / 447.6 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.746e-05/0.07334, allocations: 0.6887 MB / 448.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.793e-05/0.07336, allocations: 7.438 kB / 448.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.07337, allocations: 0 / 448.3 MB, free: 10.25 MB / 298.7 MB Notification: Performance of Templates: time 0.001462/0.07484, allocations: 0.6762 MB / 449 MB, free: 9.57 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1 --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Sample1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches