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.001273/0.001273, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001414/0.001414, allocations: 192.8 kB / 23.71 MB, free: 4.406 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.393/1.393, allocations: 225.7 MB / 252.5 MB, free: 12.8 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001558/0.001558, allocations: 52.06 kB / 370.4 MB, free: 9.699 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2444/0.2459, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002598/0.2485, allocations: 1.442 MB / 424 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001912/0.2487, allocations: 43.84 kB / 424.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.437e-05/0.2488, allocations: 0 / 424.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.613e-05/0.2488, allocations: 3.938 kB / 424.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.214e-05/0.2488, allocations: 3.938 kB / 424.1 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.2491, allocations: 35.89 kB / 424.1 MB, free: 12.87 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 8.65e-05/0.2491, allocations: 35.92 kB / 424.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.674e-05/0.2492, allocations: 15.78 kB / 424.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.867e-05/0.2493, allocations: 15.92 kB / 424.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.871e-05/0.2493, allocations: 23.92 kB / 424.2 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.729e-05/0.2493, allocations: 4 kB / 424.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.849e-06/0.2493, allocations: 0 / 424.2 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.1e-05/0.2494, allocations: 11.94 kB / 424.2 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.199e-05/0.2494, allocations: 19.91 kB / 424.2 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.339e-05/0.2495, allocations: 31.89 kB / 424.3 MB, free: 12.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2495, allocations: 4 kB / 424.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2495, allocations: 0 / 424.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.2495, allocations: 0 / 424.3 MB, free: 12.71 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.0004298/0.2499, allocations: 280 kB / 424.5 MB, free: 12.41 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.25, allocations: 11.97 kB / 424.5 MB, free: 12.4 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.546e-05/0.25, allocations: 50.72 kB / 424.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.732e-05/0.2501, allocations: 4.938 kB / 424.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.2502, allocations: 126.4 kB / 424.7 MB, free: 12.19 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 9.642e-05/0.2503, allocations: 34.27 kB / 424.8 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.167e-05/0.2504, allocations: 4.359 kB / 424.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002843/0.2506, allocations: 127.6 kB / 424.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.424e-06/0.2506, allocations: 0 / 424.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.2507, allocations: 8 kB / 424.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.466e-06/0.2507, allocations: 0 / 424.9 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.752e-05/0.2507, allocations: 15.98 kB / 424.9 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000134/0.2508, allocations: 128.8 kB / 425 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001641/0.251, allocations: 62.62 kB / 425.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.052e-05/0.2511, allocations: 20.84 kB / 425.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.817e-06/0.2511, allocations: 0 / 425.1 MB, free: 11.72 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.192e-05/0.2511, allocations: 42.5 kB / 425.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 8.72e-07/0.2511, allocations: 0 / 425.2 MB, free: 11.67 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002026/0.2513, allocations: 69.64 kB / 425.2 MB, free: 11.6 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.229e-05/0.2514, allocations: 67.34 kB / 425.3 MB, free: 11.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.356e-05/0.2515, allocations: 105.8 kB / 425.4 MB, free: 11.41 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.228e-05/0.2515, allocations: 25.7 kB / 425.4 MB, free: 11.38 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.501e-05/0.2515, allocations: 88.14 kB / 425.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.395e-05/0.2515, allocations: 7.938 kB / 425.5 MB, free: 11.28 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.565e-05/0.2516, allocations: 21.66 kB / 425.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001347/0.2517, allocations: 318.8 kB / 425.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.009e-05/0.2517, allocations: 7.984 kB / 425.8 MB, free: 10.92 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.337e-05/0.2518, allocations: 36.3 kB / 425.9 MB, free: 10.87 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.591e-05/0.2518, allocations: 52.23 kB / 425.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2518, allocations: 0 / 425.9 MB, free: 10.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001012/0.2519, allocations: 73.55 kB / 426 MB, free: 10.73 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.252, allocations: 11.94 kB / 426 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.458e-06/0.252, allocations: 0 / 426 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.252, allocations: 4 kB / 426 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.087e-05/0.252, allocations: 8.156 kB / 426 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.748e-06/0.252, allocations: 0 / 426 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.271e-05/0.252, allocations: 0 / 426 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.038e-06/0.252, allocations: 4 kB / 426 MB, free: 10.7 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 9.019e-05/0.2521, allocations: 117.8 kB / 426.1 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001074/0.2522, allocations: 69.58 kB / 426.2 MB, free: 10.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.023e-05/0.2523, allocations: 4.062 kB / 426.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.2523, allocations: 4 kB / 426.2 MB, free: 10.49 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.2523, allocations: 7.922 kB / 426.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.2523, allocations: 0 / 426.2 MB, free: 10.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.895e-05/0.2524, allocations: 129.2 kB / 426.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/0.2524, allocations: 0 / 426.4 MB, free: 10.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.017e-05/0.2524, allocations: 8.094 kB / 426.4 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.683e-06/0.2524, allocations: 11.92 kB / 426.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.2524, allocations: 0 / 426.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.2524, allocations: 0 / 426.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-07/0.2524, allocations: 0 / 426.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001347/0.2525, allocations: 93.02 kB / 426.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.012e-05/0.2525, allocations: 3.938 kB / 426.5 MB, free: 10.18 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.174e-05/0.2526, allocations: 11.98 kB / 426.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.816e-05/0.2526, allocations: 0 / 426.5 MB, free: 10.17 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.294e-06/0.2526, allocations: 4 kB / 426.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.434e-06/0.2526, allocations: 7.938 kB / 426.5 MB, free: 10.16 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.927e-05/0.2527, allocations: 87.27 kB / 426.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2527, allocations: 0 / 426.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001934/0.2529, allocations: 8 kB / 426.6 MB, free: 10.06 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.0005149/0.2534, allocations: 0.6516 MB / 427.2 MB, free: 9.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001044/0.2535, allocations: 31.92 kB / 427.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.2535, allocations: 0 / 427.3 MB, free: 9.352 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.028e-06/0.2535, allocations: 4.375 kB / 427.3 MB, free: 9.348 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006829/0.2542, allocations: 0.718 MB / 428 MB, free: 8.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.2553, allocations: 1.228 MB / 429.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.645e-05/0.2553, allocations: 67.2 kB / 429.3 MB, free: 7.188 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 1.956e-05/0.2553, allocations: 4 kB / 429.3 MB, free: 7.184 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.694e-05/0.2554, allocations: 19.42 kB / 429.3 MB, free: 7.164 MB / 334.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2554, allocations: 0 / 429.3 MB, free: 7.164 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02804/0.2834, allocations: 2.268 MB / 431.6 MB, free: 5.043 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/10.66, allocations: 10.45 kB / 431.6 MB, free: 5.035 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: 12.936488595791161]