Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.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.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|unitDelay1.y|xor.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001088/0.001093, allocations: 175 kB / 16.77 MB, free: 4.926 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.67/1.67, allocations: 205.4 MB / 222.9 MB, free: 8.938 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.0008641/0.000864, allocations: 93.03 kB / 271.3 MB, free: 8.242 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.07952/0.07952, allocations: 12.6 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004188/0.0004188, allocations: 12 kB / 392.6 MB, free: 66.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08614/0.08657, allocations: 50.39 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock): time 0.00105/0.08767, allocations: 0.5675 MB / 443.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002794/0.08796, allocations: 111.7 kB / 443.6 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.601e-05/0.08805, allocations: 3.938 kB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.354e-05/0.08809, allocations: 0 / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.08822, allocations: 11.92 kB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002271/0.08846, allocations: 27.97 kB / 443.7 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.72e-05/0.08854, allocations: 31.86 kB / 443.7 MB, free: 15.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001059/0.08865, allocations: 23.98 kB / 443.7 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.306e-05/0.08868, allocations: 7.938 kB / 443.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.439e-05/0.08872, allocations: 15.92 kB / 443.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.642e-05/0.08874, allocations: 4 kB / 443.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.281e-05/0.08876, allocations: 0 / 443.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.773e-05/0.08881, allocations: 7.938 kB / 443.8 MB, free: 15.31 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.766e-05/0.08885, allocations: 49.56 kB / 443.8 MB, free: 15.25 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.593e-05/0.08892, allocations: 27.94 kB / 443.9 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.08893, allocations: 7.984 kB / 443.9 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.08894, allocations: 4 kB / 443.9 MB, free: 15.21 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.397e-06/0.08895, allocations: 4 kB / 443.9 MB, free: 15.21 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0002849/0.08924, allocations: 351.5 kB / 444.2 MB, free: 14.82 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.08928, allocations: 11.97 kB / 444.2 MB, free: 14.8 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.492e-05/0.08932, allocations: 12.78 kB / 444.2 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001576/0.08948, allocations: 192.2 kB / 444.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.122e-05/0.0895, allocations: 384 / 444.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.07e-05/0.08952, allocations: 4.375 kB / 444.4 MB, free: 14.56 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002386/0.08976, allocations: 135.8 kB / 444.6 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.185e-06/0.08978, allocations: 192 / 444.6 MB, free: 14.42 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.114e-05/0.0898, allocations: 7.922 kB / 444.6 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.62e-06/0.08981, allocations: 4 kB / 444.6 MB, free: 14.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.706e-05/0.08985, allocations: 12 kB / 444.6 MB, free: 14.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001066/0.08996, allocations: 169.6 kB / 444.8 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001223/0.09009, allocations: 78.67 kB / 444.8 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.833e-05/0.09015, allocations: 32.86 kB / 444.9 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.374e-05/0.09017, allocations: 7.984 kB / 444.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.371e-05/0.09019, allocations: 30.56 kB / 444.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.923e-06/0.0902, allocations: 0 / 444.9 MB, free: 14.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001622/0.09036, allocations: 89.47 kB / 445 MB, free: 13.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.758e-05/0.09041, allocations: 55.41 kB / 445 MB, free: 13.85 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.698e-05/0.0905, allocations: 141.7 kB / 445.2 MB, free: 13.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.642e-06/0.09052, allocations: 25.7 kB / 445.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.517e-05/0.09055, allocations: 88.14 kB / 445.3 MB, free: 13.58 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.632e-05/0.09058, allocations: 19.86 kB / 445.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.865e-06/0.09059, allocations: 0 / 445.3 MB, free: 13.56 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.962e-05/0.09064, allocations: 310.8 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.699e-05/0.09066, allocations: 11.98 kB / 445.6 MB, free: 13.24 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.231e-05/0.0907, allocations: 58.88 kB / 445.7 MB, free: 13.16 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.637e-05/0.09076, allocations: 74.73 kB / 445.8 MB, free: 13.06 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.09077, allocations: 0 / 445.8 MB, free: 13.06 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.462e-05/0.09087, allocations: 89.41 kB / 445.8 MB, free: 12.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.09089, allocations: 8.875 kB / 445.9 MB, free: 12.96 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.0909, allocations: 7.938 kB / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.287e-05/0.09092, allocations: 4 kB / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.54e-05/0.09094, allocations: 4 kB / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.09095, allocations: 3.984 kB / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.206e-05/0.09099, allocations: 4 kB / 445.9 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.557e-06/0.09101, allocations: 8 kB / 445.9 MB, free: 12.93 MB / 298.7 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,unitDelay1.u,$CLKPRE.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.464e-05/0.09108, allocations: 125.6 kB / 446 MB, free: 12.79 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.445e-05/0.09114, allocations: 77.88 kB / 446.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.793e-05/0.09118, allocations: 16.31 kB / 446.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.09119, allocations: 4 kB / 446.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.0912, allocations: 0 / 446.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.0912, allocations: 0 / 446.1 MB, free: 12.69 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.898e-05/0.09127, allocations: 169.6 kB / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.09128, allocations: 0 / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.388e-06/0.09129, allocations: 0 / 446.3 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.363e-06/0.0913, allocations: 4 kB / 446.3 MB, free: 12.47 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.09131, allocations: 7.938 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.09132, allocations: 3.938 kB / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.09132, allocations: 0 / 446.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.435e-05/0.09141, allocations: 105 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.662e-05/0.09146, allocations: 92.94 kB / 446.5 MB, free: 12.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.618e-05/0.09148, allocations: 7.938 kB / 446.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.392e-05/0.0915, allocations: 3.938 kB / 446.5 MB, free: 12.22 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.856e-06/0.0915, allocations: 4 kB / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-06/0.09151, allocations: 0 / 446.5 MB, free: 12.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.256e-05/0.09156, allocations: 99.27 kB / 446.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09157, allocations: 4 kB / 446.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001783/0.09175, allocations: 8.188 kB / 446.6 MB, free: 12.11 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: 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 (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.6e-05/0.09183, allocations: 99.25 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.137e-05/0.09193, allocations: 47.8 kB / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.09194, allocations: 0 / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.71e-07/0.09194, allocations: 0 / 446.7 MB, free: 11.95 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002976/0.09225, allocations: 40.5 kB / 446.8 MB, free: 11.91 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002434/0.0925, allocations: 205 kB / 447 MB, free: 11.67 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001183/0.09263, allocations: 0.6965 MB / 447.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.049e-05/0.09266, allocations: 11.44 kB / 447.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.09266, allocations: 0 / 447.7 MB, free: 10.94 MB / 298.7 MB Notification: Performance of Templates: time 0.001777/0.09445, allocations: 0.7871 MB / 448.5 MB, free: 10.16 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches