Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.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: "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001453/0.001457, allocations: 175.2 kB / 16.12 MB, free: 5.688 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.57/1.57, allocations: 205 MB / 221.9 MB, free: 9.074 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.00071/0.0007101, allocations: 93.36 kB / 269.9 MB, free: 8.664 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.08641/0.08641, allocations: 12.56 MB / 330.3 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003612/0.0003616, allocations: 16 kB / 391.2 MB, free: 66.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08656/0.08694, allocations: 49.98 MB / 441.1 MB, free: 16.31 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001519/0.08851, allocations: 1.159 MB / 442.3 MB, free: 15.14 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001965/0.08873, allocations: 35.84 kB / 442.3 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.696e-05/0.08881, allocations: 0 / 442.3 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.401e-05/0.08889, allocations: 3.938 kB / 442.3 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.858e-05/0.08895, allocations: 0 / 442.3 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/0.08919, allocations: 35.97 kB / 442.4 MB, free: 15.06 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.219e-05/0.08928, allocations: 31.92 kB / 442.4 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.291e-05/0.08938, allocations: 15.98 kB / 442.4 MB, free: 15.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.003e-05/0.08944, allocations: 7.938 kB / 442.4 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.155e-05/0.08949, allocations: 19.91 kB / 442.4 MB, free: 14.99 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.303e-05/0.08951, allocations: 4 kB / 442.4 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.065e-05/0.08953, allocations: 3.938 kB / 442.5 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.277e-05/0.08956, allocations: 15.92 kB / 442.5 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.673e-05/0.0896, allocations: 11.94 kB / 442.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 8.173e-05/0.08969, allocations: 40.09 kB / 442.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.0897, allocations: 4 kB / 442.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.432e-06/0.08971, allocations: 0 / 442.5 MB, free: 14.91 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.599e-06/0.08972, allocations: 0 / 442.5 MB, free: 14.91 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0003651/0.09009, allocations: 347.4 kB / 442.9 MB, free: 14.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.672e-05/0.09015, allocations: 8.031 kB / 442.9 MB, free: 14.51 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.512e-05/0.0902, allocations: 30.75 kB / 442.9 MB, free: 14.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.4e-05/0.09024, allocations: 8.844 kB / 442.9 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000149/0.09039, allocations: 180.3 kB / 443.1 MB, free: 14.25 MB / 298.7 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: pulse.startOutput = previous(pulse.counter) >= pulse.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000112/0.09051, allocations: 34.27 kB / 443.1 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.725e-05/0.09054, allocations: 12.38 kB / 443.1 MB, free: 14.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.09081, allocations: 131.5 kB / 443.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.09083, allocations: 0 / 443.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.09085, allocations: 0 / 443.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.14e-06/0.09086, allocations: 0 / 443.3 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.885e-05/0.09092, allocations: 15.98 kB / 443.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001082/0.09104, allocations: 169.7 kB / 443.4 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.09121, allocations: 135.7 kB / 443.6 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.804e-05/0.09127, allocations: 28.84 kB / 443.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.053e-05/0.09129, allocations: 0 / 443.6 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.411e-05/0.09131, allocations: 38.5 kB / 443.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.022e-06/0.09131, allocations: 0 / 443.6 MB, free: 13.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001869/0.09151, allocations: 73.62 kB / 443.7 MB, free: 13.51 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.936e-05/0.09156, allocations: 63.34 kB / 443.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.715e-05/0.09163, allocations: 105.8 kB / 443.9 MB, free: 13.32 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.008e-05/0.09165, allocations: 25.7 kB / 443.9 MB, free: 13.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.392e-05/0.09167, allocations: 84.14 kB / 444 MB, free: 13.21 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.685e-05/0.0917, allocations: 11.89 kB / 444 MB, free: 13.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.28e-05/0.09173, allocations: 13.72 kB / 444 MB, free: 13.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.958e-05/0.09179, allocations: 314.8 kB / 444.3 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.858e-05/0.09182, allocations: 19.97 kB / 444.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.809e-05/0.09185, allocations: 36.3 kB / 444.4 MB, free: 12.79 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.752e-05/0.0919, allocations: 48.22 kB / 444.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.09191, allocations: 0 / 444.4 MB, free: 12.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 9.012e-05/0.09201, allocations: 81.47 kB / 444.5 MB, free: 12.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.488e-05/0.09203, allocations: 7.938 kB / 444.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.09204, allocations: 48 / 444.5 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.09206, allocations: 7.984 kB / 444.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.817e-05/0.09212, allocations: 4 kB / 444.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.334e-06/0.09213, allocations: 3.938 kB / 444.5 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.514e-05/0.09216, allocations: 8.594 kB / 444.5 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.178e-06/0.09217, allocations: 3.938 kB / 444.5 MB, free: 12.61 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: 7 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter,pulse.y,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * 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 6.403e-05/0.09224, allocations: 121.8 kB / 444.7 MB, free: 12.48 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.147e-05/0.09233, allocations: 61.62 kB / 444.7 MB, free: 12.41 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.974e-05/0.09235, allocations: 7.969 kB / 444.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.09236, allocations: 3.984 kB / 444.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.09237, allocations: 0 / 444.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.09238, allocations: 0 / 444.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.232e-05/0.09245, allocations: 161.6 kB / 444.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.09246, allocations: 4 kB / 444.9 MB, free: 12.19 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.933e-06/0.09247, allocations: 7.938 kB / 444.9 MB, free: 12.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.09248, allocations: 7.938 kB / 444.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.835e-06/0.09249, allocations: 0 / 444.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.854e-06/0.0925, allocations: 0 / 444.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.32e-07/0.0925, allocations: 3.938 kB / 444.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001018/0.09261, allocations: 85.03 kB / 445 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.127e-05/0.09264, allocations: 89.03 kB / 445.1 MB, free: 11.96 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.888e-05/0.09267, allocations: 8 kB / 445.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.369e-05/0.09272, allocations: 4 kB / 445.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.346e-06/0.09273, allocations: 0 / 445.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.414e-06/0.09274, allocations: 4 kB / 445.1 MB, free: 11.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.504e-05/0.09277, allocations: 87.27 kB / 445.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09277, allocations: 0 / 445.2 MB, free: 11.86 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001729/0.09295, allocations: 4 kB / 445.2 MB, free: 11.86 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: 5 (assignClock1.u,assignClock1.y,pulse.y,pulse.counter,pulse.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.counter,pulse.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0003509/0.09331, allocations: 0.6555 MB / 445.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001066/0.09343, allocations: 35.92 kB / 445.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.09344, allocations: 0 / 445.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.81e-07/0.09344, allocations: 0 / 445.9 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005741/0.09402, allocations: 0.716 MB / 446.6 MB, free: 10.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008704/0.09491, allocations: 1.212 MB / 447.8 MB, free: 9.078 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001574/0.09508, allocations: 0.6926 MB / 448.5 MB, free: 8.359 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.664e-05/0.09512, allocations: 3.938 kB / 448.5 MB, free: 8.355 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.995e-05/0.09516, allocations: 15.44 kB / 448.5 MB, free: 8.34 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.09517, allocations: 0 / 448.5 MB, free: 8.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02428/0.1195, allocations: 1.456 MB / 450 MB, free: 6.879 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001613/0.1197, allocations: 238.6 kB / 450.2 MB, free: 6.617 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.621/1.741, allocations: 4 kB / 450.2 MB, free: 6.613 MB / 298.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches