Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.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.TimeBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|assignClock1.y|pulse.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001335/0.001335, allocations: 175.1 kB / 16.76 MB, free: 5.047 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.612/1.612, allocations: 205.4 MB / 222.9 MB, free: 9.012 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.0009034/0.0009031, allocations: 92.84 kB / 271.3 MB, free: 8.258 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.1023/0.1023, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005456/0.0005461, allocations: 16 kB / 392.6 MB, free: 66.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08771/0.08828, allocations: 50.37 MB / 443 MB, free: 16.14 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse): time 0.001689/0.09002, allocations: 1.191 MB / 444.2 MB, free: 14.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007824/0.09083, allocations: 464.2 kB / 444.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.289e-05/0.09093, allocations: 7.938 kB / 444.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.7e-05/0.09096, allocations: 0 / 444.6 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001558/0.09112, allocations: 11.92 kB / 444.6 MB, free: 14.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001911/0.09133, allocations: 27.97 kB / 444.7 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.816e-05/0.09142, allocations: 47.8 kB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.598e-05/0.09153, allocations: 7.984 kB / 444.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.949e-05/0.0916, allocations: 19.92 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.781e-05/0.09166, allocations: 19.91 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.75e-05/0.09168, allocations: 7.938 kB / 444.8 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.182e-05/0.0917, allocations: 4 kB / 444.8 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.748e-05/0.09173, allocations: 11.94 kB / 444.8 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.057e-05/0.09178, allocations: 41.62 kB / 444.8 MB, free: 14.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.946e-05/0.09186, allocations: 28.16 kB / 444.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.09187, allocations: 0 / 444.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.09188, allocations: 0 / 444.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.637e-06/0.09189, allocations: 0 / 444.8 MB, free: 14.24 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.0004964/0.09239, allocations: 371.3 kB / 445.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.09244, allocations: 12.03 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.806e-05/0.09249, allocations: 4.938 kB / 445.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001596/0.09266, allocations: 184.2 kB / 445.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.09269, allocations: 8.375 kB / 445.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.285e-05/0.09271, allocations: 384 / 445.4 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004/0.09311, allocations: 147.5 kB / 445.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.655e-06/0.09314, allocations: 0 / 445.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.022e-05/0.09315, allocations: 0 / 445.5 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.391e-06/0.09317, allocations: 7.938 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001294/0.09331, allocations: 27.98 kB / 445.6 MB, free: 13.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001191/0.09344, allocations: 161.7 kB / 445.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002087/0.09366, allocations: 147.7 kB / 445.9 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.124e-05/0.09376, allocations: 32.83 kB / 445.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.983e-05/0.09379, allocations: 4 kB / 445.9 MB, free: 12.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.369e-05/0.09381, allocations: 34.5 kB / 446 MB, free: 12.93 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.342e-06/0.09382, allocations: 0 / 446 MB, free: 12.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002823/0.09412, allocations: 97.7 kB / 446 MB, free: 12.83 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.717e-05/0.09416, allocations: 51.41 kB / 446.1 MB, free: 12.77 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.067e-05/0.09424, allocations: 113.8 kB / 446.2 MB, free: 12.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.893e-05/0.09428, allocations: 25.7 kB / 446.2 MB, free: 12.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.398e-05/0.09431, allocations: 88.08 kB / 446.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.09433, allocations: 7.984 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.236e-06/0.09435, allocations: 0 / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.224e-05/0.0944, allocations: 318.8 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.837e-05/0.09442, allocations: 4 kB / 446.6 MB, free: 12.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.439e-05/0.09447, allocations: 45.2 kB / 446.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.424e-05/0.09453, allocations: 61.03 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.09454, allocations: 4 kB / 446.8 MB, free: 12.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001104/0.09466, allocations: 77.47 kB / 446.8 MB, free: 11.97 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.504e-05/0.09468, allocations: 7.938 kB / 446.8 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.0947, allocations: 8.172 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.09472, allocations: 4 kB / 446.8 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.227e-05/0.09478, allocations: 8 kB / 446.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.811e-06/0.09479, allocations: 0 / 446.9 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.274e-05/0.09484, allocations: 7.938 kB / 446.9 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.792e-06/0.09486, allocations: 8.469 kB / 446.9 MB, free: 11.93 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 3 (assignClock1.y,assignClock1.u,pulse.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.94e-05/0.09492, allocations: 117.6 kB / 447 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.09508, allocations: 77.52 kB / 447.1 MB, free: 11.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.132e-05/0.09512, allocations: 12.38 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.864e-06/0.09513, allocations: 0 / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.09514, allocations: 4 kB / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.646e-06/0.09515, allocations: 0 / 447.1 MB, free: 11.7 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.009e-05/0.09523, allocations: 165.6 kB / 447.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.09524, allocations: 0 / 447.2 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.614e-05/0.0953, allocations: 8 kB / 447.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.09532, allocations: 3.938 kB / 447.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.676e-06/0.09533, allocations: 0 / 447.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.09534, allocations: 0 / 447.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.09535, allocations: 0 / 447.3 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001698/0.09552, allocations: 101 kB / 447.3 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.363e-05/0.09556, allocations: 88.89 kB / 447.4 MB, free: 11.26 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.191e-05/0.09559, allocations: 11.98 kB / 447.4 MB, free: 11.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001036/0.0957, allocations: 11.98 kB / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.298e-06/0.09572, allocations: 128 / 447.5 MB, free: 11.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.788e-06/0.09574, allocations: 15.94 kB / 447.5 MB, free: 11.22 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.335e-05/0.09578, allocations: 87.27 kB / 447.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.09579, allocations: 0 / 447.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002951/0.0961, allocations: 8 kB / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (pulse.y,assignClock1.u,assignClock1.y) * Number of discrete states: 0 () * Number of clocked states: 1 (pulse.next) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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 7.469e-05/0.09618, allocations: 91.25 kB / 447.7 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001415/0.09633, allocations: 43.91 kB / 447.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.09634, allocations: 4.375 kB / 447.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 7.91e-07/0.09635, allocations: 4 kB / 447.7 MB, free: 10.97 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.09678, allocations: 47.94 kB / 447.8 MB, free: 10.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002973/0.09709, allocations: 162.4 kB / 447.9 MB, free: 10.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.048e-05/0.0972, allocations: 0.6926 MB / 448.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.893e-05/0.09724, allocations: 15.44 kB / 448.6 MB, free: 10 MB / 298.7 MB Notification: Performance of SimCode: time 2.8e-07/0.09725, allocations: 0 / 448.6 MB, free: 10 MB / 298.7 MB Notification: Performance of Templates: time 0.002126/0.09938, allocations: 0.7559 MB / 449.4 MB, free: 9.25 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TimeBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches