Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001469/0.001469, allocations: 168.7 kB / 16.76 MB, free: 5.031 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.304/1.304, allocations: 205 MB / 222.6 MB, free: 9.145 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.0007017/0.0007017, allocations: 101.6 kB / 270.5 MB, free: 8.66 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.0628/0.0628, allocations: 12.56 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003483/0.0003484, allocations: 12 kB / 391.7 MB, free: 66.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06268/0.06304, allocations: 49.98 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold): time 0.001271/0.06435, allocations: 1.309 MB / 443 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005927/0.06496, allocations: 0.523 MB / 443.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.676e-05/0.06503, allocations: 0 / 443.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.91e-05/0.06508, allocations: 3.938 kB / 443.5 MB, free: 14.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001023/0.06519, allocations: 11.92 kB / 443.5 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002248/0.06543, allocations: 43.91 kB / 443.6 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.127e-05/0.06551, allocations: 51.83 kB / 443.6 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.791e-05/0.06559, allocations: 12.19 kB / 443.6 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.668e-05/0.06565, allocations: 19.86 kB / 443.7 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.325e-05/0.0657, allocations: 23.84 kB / 443.7 MB, free: 14.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.607e-05/0.06573, allocations: 4 kB / 443.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.079e-05/0.06574, allocations: 0 / 443.7 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.177e-05/0.06579, allocations: 15.92 kB / 443.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.124e-05/0.06583, allocations: 27.81 kB / 443.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.959e-05/0.06589, allocations: 39.92 kB / 443.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.486e-06/0.0659, allocations: 0 / 443.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.06591, allocations: 0 / 443.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.06592, allocations: 0 / 443.8 MB, free: 14.29 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.0003317/0.06626, allocations: 383.3 kB / 444.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.942e-05/0.06629, allocations: 8.031 kB / 444.2 MB, free: 13.86 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.765e-05/0.06633, allocations: 8.844 kB / 444.2 MB, free: 13.85 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.06645, allocations: 204 kB / 444.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.127e-06/0.06647, allocations: 4.375 kB / 444.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.251e-05/0.06649, allocations: 4.375 kB / 444.4 MB, free: 13.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002287/0.06672, allocations: 134 kB / 444.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.06674, allocations: 4 kB / 444.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.777e-06/0.06676, allocations: 4 kB / 444.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.06676, allocations: 0 / 444.5 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.023e-05/0.06685, allocations: 27.92 kB / 444.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000231/0.06709, allocations: 286.6 kB / 444.8 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001555/0.06725, allocations: 156.8 kB / 445 MB, free: 12.88 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.303e-05/0.06733, allocations: 42.69 kB / 445 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.06736, allocations: 3.984 kB / 445 MB, free: 12.83 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.23e-05/0.06737, allocations: 42.5 kB / 445.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=6): time 1.703e-06/0.06738, allocations: 0 / 445.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=6): time 0.0002295/0.06761, allocations: 101.6 kB / 445.2 MB, free: 12.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.828e-05/0.06766, allocations: 110.8 kB / 445.3 MB, free: 12.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.811e-05/0.06775, allocations: 134.2 kB / 445.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.065e-06/0.06776, allocations: 33.64 kB / 445.4 MB, free: 12.36 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.327e-05/0.06779, allocations: 96.03 kB / 445.5 MB, free: 12.26 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.426e-05/0.06781, allocations: 3.906 kB / 445.5 MB, free: 12.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.986e-05/0.06783, allocations: 17.72 kB / 445.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.661e-05/0.06788, allocations: 318.8 kB / 445.9 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.677e-05/0.06793, allocations: 20.06 kB / 445.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.678e-05/0.06798, allocations: 44.28 kB / 445.9 MB, free: 11.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.989e-05/0.06808, allocations: 68.22 kB / 446 MB, free: 11.75 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.06809, allocations: 0 / 446 MB, free: 11.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001593/0.06825, allocations: 93.53 kB / 446.1 MB, free: 11.65 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.06827, allocations: 8.125 kB / 446.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.06828, allocations: 0 / 446.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.092e-05/0.0683, allocations: 4 kB / 446.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.602e-05/0.06837, allocations: 8 kB / 446.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.06838, allocations: 0 / 446.1 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.449e-05/0.06843, allocations: 7.984 kB / 446.1 MB, free: 11.62 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.953e-06/0.06845, allocations: 4 kB / 446.1 MB, free: 11.62 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.y,$CLKPRE.clockToSquareWave.y2,clockToSquareWave.y2) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.69e-05/0.06851, allocations: 138.8 kB / 446.2 MB, free: 11.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.181e-05/0.06858, allocations: 57.53 kB / 446.3 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.709e-05/0.06861, allocations: 12.25 kB / 446.3 MB, free: 11.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.06862, allocations: 4 kB / 446.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.06863, allocations: 3.984 kB / 446.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.06864, allocations: 0 / 446.3 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.06876, allocations: 177.5 kB / 446.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.06877, allocations: 0 / 446.5 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.395e-05/0.06883, allocations: 11.98 kB / 446.5 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.345e-06/0.06884, allocations: 4 kB / 446.5 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.665e-06/0.06885, allocations: 8 kB / 446.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.323e-06/0.06886, allocations: 4 kB / 446.5 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.06886, allocations: 7.938 kB / 446.5 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001369/0.06901, allocations: 185.1 kB / 446.7 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.544e-05/0.06905, allocations: 93 kB / 446.8 MB, free: 10.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.783e-05/0.06908, allocations: 11.98 kB / 446.8 MB, free: 10.81 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.984e-05/0.06915, allocations: 7.938 kB / 446.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.638e-05/0.06918, allocations: 0 / 446.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.661e-06/0.06919, allocations: 8 kB / 446.8 MB, free: 10.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.275e-05/0.06924, allocations: 107.2 kB / 446.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.06925, allocations: 0 / 446.9 MB, free: 10.69 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002079/0.06946, allocations: 8 kB / 446.9 MB, free: 10.68 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 5.855e-05/0.06952, allocations: 103.1 kB / 447 MB, free: 10.57 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000143/0.06967, allocations: 51.91 kB / 447.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.06969, allocations: 4 kB / 447.1 MB, free: 10.52 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 3.961e-05/0.06973, allocations: 12 kB / 447.1 MB, free: 10.5 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003208/0.07006, allocations: 24.02 kB / 447.1 MB, free: 10.48 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002799/0.07035, allocations: 240.8 kB / 447.4 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.365e-05/0.07045, allocations: 0.6965 MB / 448.1 MB, free: 9.488 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.464e-05/0.07048, allocations: 11.44 kB / 448.1 MB, free: 9.477 MB / 298.7 MB Notification: Performance of SimCode: time 3e-07/0.07049, allocations: 4 kB / 448.1 MB, free: 9.473 MB / 298.7 MB Notification: Performance of Templates: time 0.00164/0.07214, allocations: 0.8643 MB / 448.9 MB, free: 8.613 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.AssignClockToSquareWaveHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches