Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.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.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|clockToSquareWave.y|sample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001807/0.001807, allocations: 175.3 kB / 16.45 MB, free: 5.684 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.583/1.583, allocations: 205.4 MB / 222.6 MB, free: 9.105 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.0007897/0.0007896, allocations: 100.9 kB / 270.9 MB, free: 8.344 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.06751/0.06751, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003519/0.0003519, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06068/0.06104, allocations: 50.38 MB / 442.4 MB, free: 16.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001197/0.06228, allocations: 1.274 MB / 443.7 MB, free: 15.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005505/0.06284, allocations: 0.5155 MB / 444.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.93e-05/0.06291, allocations: 0 / 444.2 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.349e-05/0.06294, allocations: 3.938 kB / 444.2 MB, free: 14.63 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.576e-05/0.06305, allocations: 7.938 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002128/0.06326, allocations: 47.89 kB / 444.2 MB, free: 14.58 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 6.631e-05/0.06334, allocations: 43.84 kB / 444.3 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.324e-05/0.06342, allocations: 20.17 kB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.127e-05/0.06348, allocations: 27.84 kB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.174e-05/0.06353, allocations: 11.92 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.397e-05/0.06355, allocations: 4 kB / 444.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.081e-05/0.06356, allocations: 0 / 444.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.679e-05/0.06359, allocations: 19.86 kB / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.153e-05/0.06362, allocations: 41.58 kB / 444.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.596e-05/0.06368, allocations: 39.92 kB / 444.4 MB, free: 14.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.996e-06/0.06369, allocations: 4 kB / 444.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.0637, allocations: 0 / 444.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.091e-06/0.06371, allocations: 0 / 444.4 MB, free: 14.36 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: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003039/0.06402, allocations: 363.3 kB / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.653e-05/0.06405, allocations: 12.03 kB / 444.8 MB, free: 13.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.816e-05/0.06408, allocations: 7.906 kB / 444.8 MB, free: 13.94 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001224/0.06421, allocations: 198.8 kB / 445 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.304e-06/0.06423, allocations: 8 kB / 445 MB, free: 13.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.192e-05/0.06424, allocations: 8 kB / 445 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002172/0.06447, allocations: 137.8 kB / 445.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.773e-06/0.06448, allocations: 0 / 445.2 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.113e-06/0.0645, allocations: 3.938 kB / 445.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.326e-06/0.06451, allocations: 4 kB / 445.2 MB, free: 13.53 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.916e-05/0.06459, allocations: 27.92 kB / 445.2 MB, free: 13.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002206/0.06482, allocations: 282.5 kB / 445.5 MB, free: 13.17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.06497, allocations: 160.8 kB / 445.6 MB, free: 12.96 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6e-05/0.06504, allocations: 38.69 kB / 445.7 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.393e-05/0.06506, allocations: 0 / 445.7 MB, free: 12.92 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.53e-05/0.06508, allocations: 46.5 kB / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 9.02e-07/0.06509, allocations: 0 / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002268/0.06532, allocations: 97.5 kB / 445.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.06536, allocations: 111.1 kB / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.383e-05/0.06544, allocations: 142.1 kB / 446 MB, free: 12.48 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.863e-06/0.06546, allocations: 25.7 kB / 446.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.135e-05/0.06548, allocations: 92.33 kB / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.139e-05/0.0655, allocations: 3.906 kB / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.306e-06/0.06551, allocations: 0 / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.391e-05/0.06555, allocations: 322.8 kB / 446.5 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.59e-05/0.0656, allocations: 15.98 kB / 446.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.734e-05/0.06565, allocations: 52.22 kB / 446.5 MB, free: 11.94 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.975e-05/0.06571, allocations: 16 kB / 446.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.06572, allocations: 0 / 446.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001352/0.06586, allocations: 93.55 kB / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.938e-06/0.06587, allocations: 8 kB / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.06588, allocations: 0 / 446.7 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.019e-05/0.0659, allocations: 8.219 kB / 446.7 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.259e-05/0.06596, allocations: 8 kB / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.06598, allocations: 0 / 446.7 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.833e-05/0.06603, allocations: 19.98 kB / 446.7 MB, free: 11.79 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.605e-06/0.06604, allocations: 7.984 kB / 446.7 MB, free: 11.78 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (clockToSquareWave.y2,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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.138e-05/0.0661, allocations: 121.8 kB / 446.8 MB, free: 11.65 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.184e-05/0.06617, allocations: 61.53 kB / 446.9 MB, free: 11.58 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.484e-05/0.0662, allocations: 12.25 kB / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.06621, allocations: 0 / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.06621, allocations: 4 kB / 446.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.06622, allocations: 0 / 446.9 MB, free: 11.56 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001264/0.06635, allocations: 181.5 kB / 447.1 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.06636, allocations: 7.938 kB / 447.1 MB, free: 11.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.439e-05/0.06642, allocations: 11.98 kB / 447.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.06643, allocations: 0 / 447.1 MB, free: 11.32 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.06644, allocations: 4 kB / 447.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.362e-06/0.06645, allocations: 0 / 447.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.06645, allocations: 0 / 447.1 MB, free: 11.31 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001397/0.0666, allocations: 201 kB / 447.3 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.503e-05/0.06664, allocations: 93 kB / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.423e-05/0.06666, allocations: 0 / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.202e-05/0.06674, allocations: 7.984 kB / 447.4 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.003e-05/0.06676, allocations: 4 kB / 447.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.06677, allocations: 0 / 447.4 MB, free: 10.97 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.211e-05/0.06682, allocations: 111.2 kB / 447.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.06683, allocations: 4 kB / 447.5 MB, free: 10.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002049/0.06704, allocations: 12 kB / 447.5 MB, free: 10.85 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 2 (clockToSquareWave.y,clockToSquareWave.y2) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToSquareWave.y2) * 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 6.07e-05/0.0671, allocations: 91.25 kB / 447.6 MB, free: 10.75 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001301/0.06724, allocations: 55.84 kB / 447.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.06725, allocations: 0 / 447.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.875e-05/0.06729, allocations: 12.31 kB / 447.7 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003017/0.0676, allocations: 28.02 kB / 447.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002593/0.06787, allocations: 244.7 kB / 447.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.194e-05/0.06797, allocations: 0.6926 MB / 448.6 MB, free: 9.66 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.373e-05/0.068, allocations: 11.44 kB / 448.7 MB, free: 9.648 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.06801, allocations: 0 / 448.7 MB, free: 9.648 MB / 298.7 MB Notification: Performance of Templates: time 0.00152/0.06954, allocations: 0.8616 MB / 449.5 MB, free: 8.793 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches