Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001851/0.001851, allocations: 110.3 kB / 16.92 MB, free: 5.785 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002298/0.002298, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.509/1.509, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001188/0.001188, allocations: 47.34 kB / 300.6 MB, free: 5.883 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1457, allocations: 49.44 MB / 350.1 MB, free: 4.43 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock): time 0.003512/0.1493, allocations: 0.8491 MB / 350.9 MB, free: 3.57 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004998/0.1499, allocations: 115.6 kB / 351 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.15, allocations: 0 / 351 MB, free: 3.457 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.013e-05/0.1501, allocations: 3.938 kB / 351 MB, free: 3.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002147/0.1504, allocations: 7.922 kB / 351 MB, free: 3.445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003689/0.1507, allocations: 46.34 kB / 351.1 MB, free: 3.402 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001444/0.1509, allocations: 39.91 kB / 351.1 MB, free: 3.363 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001818/0.1511, allocations: 15.98 kB / 351.1 MB, free: 3.348 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.904e-05/0.1511, allocations: 23.92 kB / 351.2 MB, free: 3.324 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.357e-05/0.1512, allocations: 19.86 kB / 351.2 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.392e-05/0.1512, allocations: 0 / 351.2 MB, free: 3.305 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.799e-05/0.1512, allocations: 4 kB / 351.2 MB, free: 3.301 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.979e-05/0.1513, allocations: 19.91 kB / 351.2 MB, free: 3.281 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.655e-05/0.1514, allocations: 31.81 kB / 351.2 MB, free: 3.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001575/0.1516, allocations: 47.75 kB / 351.3 MB, free: 3.203 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.236e-06/0.1516, allocations: 4 kB / 351.3 MB, free: 3.199 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.816e-06/0.1516, allocations: 3.938 kB / 351.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.327e-06/0.1516, allocations: 0 / 351.3 MB, free: 3.195 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0006701/0.1523, allocations: 371.5 kB / 351.6 MB, free: 2.781 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.922e-05/0.1523, allocations: 12.03 kB / 351.7 MB, free: 2.77 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.638e-05/0.1524, allocations: 8.844 kB / 351.7 MB, free: 2.762 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002797/0.1527, allocations: 184.2 kB / 351.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.745e-05/0.1527, allocations: 8.375 kB / 351.9 MB, free: 2.535 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.402e-05/0.1527, allocations: 4.375 kB / 351.9 MB, free: 2.531 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003942/0.1531, allocations: 135.8 kB / 352 MB, free: 2.387 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.484e-05/0.1532, allocations: 192 / 352 MB, free: 2.387 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.91e-05/0.1532, allocations: 7.938 kB / 352 MB, free: 2.379 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.1532, allocations: 0 / 352 MB, free: 2.379 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.903e-05/0.1533, allocations: 23.98 kB / 352 MB, free: 2.355 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000235/0.1535, allocations: 169.6 kB / 352.2 MB, free: 2.141 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001783/0.1537, allocations: 70.64 kB / 352.3 MB, free: 2.062 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.452e-05/0.1538, allocations: 32.89 kB / 352.3 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.528e-05/0.1538, allocations: 4 kB / 352.3 MB, free: 2.023 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.15e-05/0.1539, allocations: 38.56 kB / 352.3 MB, free: 1.977 MB / 286.1 MB Notification: Performance of pre-optimization done (n=8): time 9.82e-07/0.1539, allocations: 0 / 352.3 MB, free: 1.977 MB / 286.1 MB Notification: Performance of matching and sorting (n=8): time 0.0002187/0.1541, allocations: 85.52 kB / 352.4 MB, free: 1.887 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.215e-05/0.1542, allocations: 63.34 kB / 352.5 MB, free: 1.812 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.1543, allocations: 137.8 kB / 352.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.827e-05/0.1544, allocations: 29.64 kB / 352.6 MB, free: 1.633 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.014e-05/0.1544, allocations: 88.14 kB / 352.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.1544, allocations: 0 / 352.7 MB, free: 1.543 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.342e-05/0.1545, allocations: 41.61 kB / 352.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.1546, allocations: 314.8 kB / 353.1 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.541e-05/0.1547, allocations: 11.98 kB / 353.1 MB, free: 1.168 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.386e-05/0.1547, allocations: 50.88 kB / 353.1 MB, free: 1.094 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.311e-05/0.1548, allocations: 74.73 kB / 353.2 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.1548, allocations: 4 kB / 353.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000125/0.155, allocations: 89.5 kB / 353.3 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.252e-05/0.155, allocations: 6.812 kB / 353.3 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.155, allocations: 7.938 kB / 353.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.765e-05/0.155, allocations: 0 / 353.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.096e-05/0.1551, allocations: 4 kB / 353.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.271e-05/0.1551, allocations: 8.172 kB / 353.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.472e-05/0.1551, allocations: 8.094 kB / 353.3 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.235e-05/0.1551, allocations: 15.94 kB / 353.3 MB, free: 0.8516 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (integerConstant.y,xor.y,xor.u2,xor.u1,unitDelay1.y,$CLKPRE.unitDelay1.u,unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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 0.000118/0.1553, allocations: 120.8 kB / 353.5 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.691e-05/0.1553, allocations: 69.59 kB / 353.5 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.706e-05/0.1554, allocations: 16.31 kB / 353.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.673e-06/0.1554, allocations: 0 / 353.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.1554, allocations: 0 / 353.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1554, allocations: 0 / 353.6 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.1556, allocations: 177.6 kB / 353.7 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.22e-07/0.1556, allocations: 0 / 353.7 MB, free: 420 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.204e-05/0.1556, allocations: 7.938 kB / 353.7 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.303e-06/0.1556, allocations: 0 / 353.7 MB, free: 412 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.044e-05/0.1556, allocations: 3.938 kB / 353.7 MB, free: 408 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.258e-06/0.1556, allocations: 4 kB / 353.7 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.81e-07/0.1556, allocations: 0 / 353.7 MB, free: 404 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000128/0.1558, allocations: 97.02 kB / 353.8 MB, free: 288 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.024e-05/0.1559, allocations: 104.9 kB / 353.9 MB, free: 164 kB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/0.1559, allocations: 7.922 kB / 353.9 MB, free: 156 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.56e-05/0.1559, allocations: 4 kB / 353.9 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.977e-06/0.1559, allocations: 0 / 353.9 MB, free: 152 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.606e-06/0.1559, allocations: 4 kB / 354 MB, free: 148 kB / 286.1 MB Notification: Performance of sorting global known variables: time 7.004e-05/0.156, allocations: 103.2 kB / 354.1 MB, free: 44 kB / 286.1 MB Notification: Performance of sort global known variables: time 1e-07/0.156, allocations: 0 / 354.1 MB, free: 44 kB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002004/0.1562, allocations: 8 kB / 354.1 MB, free: 36 kB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,xor.u1,xor.u2,xor.y,integerConstant.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 0.0001553/0.1564, allocations: 107.7 kB / 354.2 MB, free: 15.92 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001442/0.1565, allocations: 47.92 kB / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.1565, allocations: 0 / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.41e-07/0.1565, allocations: 0 / 354.2 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004489/0.157, allocations: 51.94 kB / 354.3 MB, free: 15.82 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003353/0.1573, allocations: 154.8 kB / 354.4 MB, free: 15.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002838/0.1576, allocations: 0.6963 MB / 355.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.169e-05/0.1577, allocations: 4 kB / 355.1 MB, free: 14.92 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.281e-05/0.1577, allocations: 11.44 kB / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of SimCode: time 2e-07/0.1577, allocations: 0 / 355.1 MB, free: 14.91 MB / 302.1 MB Notification: Performance of Templates: time 0.003279/0.161, allocations: 0.6162 MB / 355.7 MB, free: 14.3 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/AssignClock/AssignClock.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches