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.001811/0.001811, allocations: 184.4 kB / 16.45 MB, free: 5.656 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.513/1.513, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0008347/0.0008348, allocations: 89.95 kB / 270.9 MB, free: 8.359 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.09613/0.09613, allocations: 12.6 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003868/0.0003869, allocations: 16 kB / 392 MB, free: 66.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0666/0.067, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.AssignClock): time 0.0008865/0.06792, allocations: 0.5631 MB / 442.9 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002622/0.06821, allocations: 115.7 kB / 443 MB, free: 15.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.339e-05/0.06828, allocations: 4 kB / 443.1 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.588e-05/0.06832, allocations: 3.984 kB / 443.1 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 9.951e-05/0.06842, allocations: 3.938 kB / 443.1 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001971/0.06863, allocations: 31.91 kB / 443.1 MB, free: 15.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.014e-05/0.06871, allocations: 39.86 kB / 443.1 MB, free: 15.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.408e-05/0.0688, allocations: 23.97 kB / 443.2 MB, free: 15.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.431e-05/0.06883, allocations: 15.92 kB / 443.2 MB, free: 15.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 2.788e-05/0.06886, allocations: 11.92 kB / 443.2 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.413e-05/0.06888, allocations: 0 / 443.2 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.378e-06/0.0689, allocations: 0 / 443.2 MB, free: 15.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.907e-05/0.06893, allocations: 19.92 kB / 443.2 MB, free: 15.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.07e-05/0.06896, allocations: 29.64 kB / 443.2 MB, free: 15.59 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.856e-05/0.06902, allocations: 35.94 kB / 443.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.06903, allocations: 0 / 443.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.06904, allocations: 4 kB / 443.3 MB, free: 15.55 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.236e-06/0.06905, allocations: 0 / 443.3 MB, free: 15.55 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.0002503/0.0693, allocations: 355.3 kB / 443.6 MB, free: 15.16 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.882e-05/0.06934, allocations: 15.97 kB / 443.6 MB, free: 15.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.96e-05/0.06937, allocations: 7.906 kB / 443.6 MB, free: 15.13 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.0695, allocations: 179 kB / 443.8 MB, free: 14.92 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.06952, allocations: 7.953 kB / 443.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.548e-06/0.06954, allocations: 4 kB / 443.8 MB, free: 14.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002183/0.06976, allocations: 139.1 kB / 444 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.134e-06/0.06978, allocations: 4 kB / 444 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.06979, allocations: 4 kB / 444 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.0698, allocations: 0 / 444 MB, free: 14.75 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.643e-05/0.06984, allocations: 12 kB / 444 MB, free: 14.74 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.637e-05/0.06995, allocations: 169.6 kB / 444.1 MB, free: 14.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000107/0.07006, allocations: 74.61 kB / 444.2 MB, free: 14.44 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.642e-05/0.07011, allocations: 36.89 kB / 444.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.698e-06/0.07013, allocations: 0 / 444.3 MB, free: 14.4 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.562e-05/0.07015, allocations: 34.56 kB / 444.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.42e-07/0.07016, allocations: 3.938 kB / 444.3 MB, free: 14.36 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001691/0.07033, allocations: 85.52 kB / 444.4 MB, free: 14.27 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.07038, allocations: 63.41 kB / 444.4 MB, free: 14.19 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.812e-05/0.07046, allocations: 137.7 kB / 444.6 MB, free: 14.05 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.713e-06/0.07048, allocations: 25.7 kB / 444.6 MB, free: 14.02 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.089e-05/0.0705, allocations: 92.12 kB / 444.7 MB, free: 13.92 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.04e-05/0.07052, allocations: 0 / 444.7 MB, free: 13.92 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.407e-06/0.07053, allocations: 4 kB / 444.7 MB, free: 13.92 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.769e-05/0.07057, allocations: 318.8 kB / 445 MB, free: 13.6 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.682e-05/0.07059, allocations: 8 kB / 445 MB, free: 13.59 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.156e-05/0.07063, allocations: 62.8 kB / 445.1 MB, free: 13.5 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.786e-05/0.07066, allocations: 19.94 kB / 445.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.823e-06/0.07067, allocations: 0 / 445.1 MB, free: 13.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.821e-05/0.07077, allocations: 93.36 kB / 445.2 MB, free: 13.39 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.137e-05/0.07079, allocations: 8 kB / 445.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.698e-06/0.0708, allocations: 0 / 445.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.07081, allocations: 4 kB / 445.2 MB, free: 13.38 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.815e-05/0.07084, allocations: 7.984 kB / 445.2 MB, free: 13.37 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.6e-06/0.07085, allocations: 4.562 kB / 445.2 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.441e-05/0.07089, allocations: 4 kB / 445.2 MB, free: 13.36 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.0709, allocations: 8 kB / 445.2 MB, free: 13.35 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 5.566e-05/0.07096, allocations: 125.6 kB / 445.3 MB, free: 13.22 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.486e-05/0.07103, allocations: 77.53 kB / 445.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.704e-05/0.07106, allocations: 12.38 kB / 445.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-06/0.07107, allocations: 0 / 445.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.07108, allocations: 4 kB / 445.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.07109, allocations: 3.984 kB / 445.4 MB, free: 13.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.511e-05/0.07115, allocations: 173.6 kB / 445.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.07115, allocations: 0 / 445.6 MB, free: 12.9 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.223e-05/0.07117, allocations: 4 kB / 445.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.07118, allocations: 7.891 kB / 445.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.781e-06/0.07119, allocations: 0 / 445.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.0712, allocations: 0 / 445.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.0712, allocations: 0 / 445.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.126e-05/0.07129, allocations: 97.11 kB / 445.7 MB, free: 12.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.379e-05/0.07133, allocations: 96.94 kB / 445.8 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.553e-05/0.07135, allocations: 15.89 kB / 445.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.411e-05/0.07137, allocations: 0 / 445.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.175e-06/0.07138, allocations: 3.984 kB / 445.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.07138, allocations: 0 / 445.8 MB, free: 12.64 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.846e-05/0.07143, allocations: 103.3 kB / 445.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.07143, allocations: 0 / 445.9 MB, free: 12.54 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002683/0.07171, allocations: 4 kB / 445.9 MB, free: 12.54 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 6.867e-05/0.07178, allocations: 107.2 kB / 446 MB, free: 12.42 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.451e-05/0.07189, allocations: 43.91 kB / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.0719, allocations: 0 / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.01e-07/0.0719, allocations: 0 / 446.1 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002726/0.07218, allocations: 40.02 kB / 446.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002208/0.07241, allocations: 209.6 kB / 446.3 MB, free: 12.09 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.043e-05/0.07251, allocations: 0.6965 MB / 447 MB, free: 11.37 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.754e-05/0.07253, allocations: 11.44 kB / 447 MB, free: 11.36 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.07254, allocations: 0 / 447 MB, free: 11.36 MB / 298.7 MB Notification: Performance of Templates: time 0.001595/0.07414, allocations: 0.7853 MB / 447.8 MB, free: 10.58 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