Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001297/0.001297, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00132/0.00132, allocations: 191.7 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.336/1.336, allocations: 225.6 MB / 253.3 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001416/0.001416, allocations: 43.92 kB / 371.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2514, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.00263/0.2541, allocations: 1.443 MB / 424.9 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000182/0.2542, allocations: 39.91 kB / 424.9 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.669e-05/0.2543, allocations: 4 kB / 424.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.899e-05/0.2543, allocations: 3.938 kB / 424.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.582e-05/0.2544, allocations: 7.922 kB / 424.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002233/0.2546, allocations: 27.92 kB / 424.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.163e-05/0.2547, allocations: 43.89 kB / 425 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.922e-05/0.2548, allocations: 8 kB / 425 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.357e-05/0.2548, allocations: 15.92 kB / 425 MB, free: 13 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.207e-05/0.2549, allocations: 23.86 kB / 425 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.902e-05/0.2549, allocations: 4 kB / 425 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.041e-05/0.2549, allocations: 0 / 425 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.496e-05/0.2549, allocations: 15.92 kB / 425.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.826e-05/0.255, allocations: 23.92 kB / 425.1 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001012/0.2551, allocations: 35.69 kB / 425.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.2551, allocations: 0 / 425.1 MB, free: 12.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.2551, allocations: 7.938 kB / 425.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.2551, allocations: 0 / 425.1 MB, free: 12.89 MB / 334.1 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.0004348/0.2555, allocations: 275.3 kB / 425.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.774e-05/0.2556, allocations: 8.031 kB / 425.4 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.915e-05/0.2556, allocations: 4.188 kB / 425.4 MB, free: 12.58 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.146e-05/0.2556, allocations: 34.75 kB / 425.4 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.788e-05/0.2556, allocations: 8.938 kB / 425.4 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001893/0.2558, allocations: 122.4 kB / 425.6 MB, free: 12.39 MB / 334.1 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.0001097/0.2559, allocations: 42.2 kB / 425.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.448e-06/0.2559, allocations: 4.312 kB / 425.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002909/0.2562, allocations: 127.4 kB / 425.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.584e-06/0.2562, allocations: 0 / 425.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.758e-06/0.2563, allocations: 4 kB / 425.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.2563, allocations: 0 / 425.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.33e-05/0.2563, allocations: 23.92 kB / 425.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001392/0.2565, allocations: 136.7 kB / 425.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001594/0.2566, allocations: 54.69 kB / 425.9 MB, free: 11.93 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.729e-05/0.2567, allocations: 24.84 kB / 426 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.013e-05/0.2567, allocations: 7.984 kB / 426 MB, free: 11.9 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/0.2567, allocations: 38.44 kB / 426 MB, free: 11.85 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.2567, allocations: 4 kB / 426 MB, free: 11.85 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0001948/0.2569, allocations: 73.58 kB / 426.1 MB, free: 11.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.697e-05/0.257, allocations: 59.41 kB / 426.1 MB, free: 11.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.415e-05/0.2571, allocations: 105.8 kB / 426.2 MB, free: 11.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.844e-05/0.2571, allocations: 25.7 kB / 426.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.307e-05/0.2571, allocations: 84.14 kB / 426.4 MB, free: 11.47 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.512e-05/0.2571, allocations: 11.95 kB / 426.4 MB, free: 11.46 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.356e-05/0.2572, allocations: 21.7 kB / 426.4 MB, free: 11.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.2573, allocations: 314.8 kB / 426.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.567e-05/0.2573, allocations: 4 kB / 426.7 MB, free: 11.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.437e-05/0.2574, allocations: 40.28 kB / 426.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.174e-05/0.2574, allocations: 56.17 kB / 426.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.2574, allocations: 0 / 426.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001007/0.2575, allocations: 69.56 kB / 426.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.558e-05/0.2575, allocations: 12.16 kB / 426.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.2575, allocations: 0 / 426.9 MB, free: 10.9 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.2576, allocations: 3.984 kB / 426.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.086e-05/0.2576, allocations: 7.938 kB / 426.9 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.2576, allocations: 4 kB / 426.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.216e-05/0.2576, allocations: 0 / 426.9 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.821e-06/0.2576, allocations: 4 kB / 426.9 MB, free: 10.88 MB / 334.1 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 8.797e-05/0.2577, allocations: 117.8 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.2578, allocations: 69.52 kB / 427.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.246e-05/0.2578, allocations: 12.06 kB / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.2578, allocations: 0 / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.2579, allocations: 4.438 kB / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.555e-06/0.2579, allocations: 0 / 427.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001037/0.258, allocations: 128.7 kB / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.655e-06/0.258, allocations: 4 kB / 427.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.14e-05/0.258, allocations: 11.86 kB / 427.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-06/0.258, allocations: 0 / 427.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.258, allocations: 7.938 kB / 427.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.42e-07/0.258, allocations: 0 / 427.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.258, allocations: 0 / 427.2 MB, free: 10.47 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001319/0.2581, allocations: 85.12 kB / 427.3 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.844e-05/0.2581, allocations: 15.89 kB / 427.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.623e-05/0.2582, allocations: 0 / 427.3 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.422e-05/0.2582, allocations: 7.984 kB / 427.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.083e-06/0.2582, allocations: 0 / 427.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.831e-06/0.2582, allocations: 0 / 427.3 MB, free: 10.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.765e-05/0.2583, allocations: 91.22 kB / 427.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2583, allocations: 0 / 427.4 MB, free: 10.25 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001839/0.2584, allocations: 12 kB / 427.5 MB, free: 10.24 MB / 334.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: 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.0005054/0.2589, allocations: 0.6476 MB / 428.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001055/0.259, allocations: 27.94 kB / 428.1 MB, free: 9.539 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.406e-06/0.259, allocations: 4.375 kB / 428.1 MB, free: 9.535 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.01e-07/0.2591, allocations: 4 kB / 428.1 MB, free: 9.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006837/0.2597, allocations: 0.7173 MB / 428.9 MB, free: 8.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001084/0.2608, allocations: 1.236 MB / 430.1 MB, free: 7.457 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000306/0.2611, allocations: 0.6883 MB / 430.8 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.76e-05/0.2611, allocations: 0 / 430.8 MB, free: 6.742 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.482e-05/0.2612, allocations: 19.42 kB / 430.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of SimCode: time 3.01e-07/0.2612, allocations: 0 / 430.8 MB, free: 6.723 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02065/0.2818, allocations: 1.848 MB / 432.6 MB, free: 5.023 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/10.83, allocations: 10.75 kB / 432.7 MB, free: 5.016 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.196689338015858]