Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001529/0.001529, allocations: 112.2 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.00176/0.00176, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.386/1.386, allocations: 230.6 MB / 258.3 MB, free: 8.043 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001605/0.001605, allocations: 47.94 kB / 378.6 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.256/0.2576, allocations: 53.35 MB / 431.9 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002971/0.2606, allocations: 1.46 MB / 433.4 MB, free: 5.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002257/0.2608, allocations: 47.83 kB / 433.4 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.546e-05/0.2609, allocations: 0 / 433.4 MB, free: 5.371 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.715e-05/0.2609, allocations: 3.938 kB / 433.4 MB, free: 5.367 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.488e-05/0.2609, allocations: 3.938 kB / 433.4 MB, free: 5.363 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.2612, allocations: 27.97 kB / 433.5 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.2613, allocations: 39.91 kB / 433.5 MB, free: 5.297 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.113e-05/0.2614, allocations: 8 kB / 433.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.956e-05/0.2614, allocations: 19.92 kB / 433.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.385e-05/0.2615, allocations: 19.91 kB / 433.5 MB, free: 5.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.803e-05/0.2615, allocations: 4 kB / 433.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.172e-05/0.2615, allocations: 4 kB / 433.6 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.656e-05/0.2615, allocations: 7.938 kB / 433.6 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.856e-05/0.2616, allocations: 19.92 kB / 433.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001285/0.2617, allocations: 47.61 kB / 433.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2617, allocations: 0 / 433.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.2617, allocations: 4 kB / 433.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.621e-06/0.2617, allocations: 0 / 433.6 MB, free: 5.168 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.000499/0.2622, allocations: 270.8 kB / 433.9 MB, free: 4.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.501e-05/0.2623, allocations: 12.03 kB / 433.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.767e-05/0.2623, allocations: 192 / 433.9 MB, free: 4.863 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.795e-05/0.2623, allocations: 34.75 kB / 433.9 MB, free: 4.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.712e-05/0.2624, allocations: 12.83 kB / 434 MB, free: 4.809 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002409/0.2626, allocations: 118.5 kB / 434.1 MB, free: 4.668 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.0001185/0.2627, allocations: 42.25 kB / 434.1 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.39e-05/0.2627, allocations: 4.375 kB / 434.1 MB, free: 4.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003206/0.263, allocations: 127.4 kB / 434.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.2631, allocations: 0 / 434.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.2631, allocations: 0 / 434.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.2631, allocations: 4 kB / 434.2 MB, free: 4.477 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.013e-05/0.2632, allocations: 19.98 kB / 434.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001552/0.2633, allocations: 136.7 kB / 434.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001985/0.2635, allocations: 58.62 kB / 434.5 MB, free: 4.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.034e-05/0.2636, allocations: 24.8 kB / 434.5 MB, free: 4.188 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.425e-05/0.2636, allocations: 7.984 kB / 434.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.802e-05/0.2636, allocations: 34.5 kB / 434.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.143e-06/0.2636, allocations: 4 kB / 434.5 MB, free: 4.133 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002584/0.2639, allocations: 69.69 kB / 434.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001112/0.264, allocations: 59.34 kB / 434.6 MB, free: 3.988 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001364/0.2641, allocations: 106.2 kB / 434.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.557e-05/0.2641, allocations: 25.7 kB / 434.8 MB, free: 3.844 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.251e-05/0.2642, allocations: 88.14 kB / 434.9 MB, free: 3.754 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.838e-05/0.2643, allocations: 7.938 kB / 434.9 MB, free: 3.746 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-05/0.2643, allocations: 21.7 kB / 434.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.2645, allocations: 322.8 kB / 435.2 MB, free: 3.395 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.526e-05/0.2645, allocations: 4 kB / 435.2 MB, free: 3.391 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.391e-05/0.2646, allocations: 40.28 kB / 435.3 MB, free: 3.336 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.06e-05/0.2647, allocations: 52.3 kB / 435.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.2647, allocations: 0 / 435.3 MB, free: 3.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001358/0.2648, allocations: 81.45 kB / 435.4 MB, free: 3.184 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.75e-05/0.2648, allocations: 4 kB / 435.4 MB, free: 3.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.2648, allocations: 4 kB / 435.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.591e-05/0.2648, allocations: 0 / 435.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.055e-05/0.2649, allocations: 12.14 kB / 435.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.2649, allocations: 0 / 435.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.656e-05/0.2649, allocations: 4 kB / 435.4 MB, free: 3.16 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.396e-06/0.2649, allocations: 4 kB / 435.4 MB, free: 3.156 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 0.0001083/0.265, allocations: 119.5 kB / 435.5 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001164/0.2652, allocations: 65.62 kB / 435.6 MB, free: 2.961 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.726e-05/0.2652, allocations: 8.062 kB / 435.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2652, allocations: 96 / 435.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.2652, allocations: 0 / 435.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.609e-06/0.2652, allocations: 7.984 kB / 435.6 MB, free: 2.941 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001213/0.2653, allocations: 136.6 kB / 435.7 MB, free: 2.766 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.063e-06/0.2653, allocations: 4 kB / 435.7 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.476e-06/0.2653, allocations: 3.938 kB / 435.7 MB, free: 2.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.699e-06/0.2653, allocations: 3.984 kB / 435.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.2653, allocations: 0 / 435.8 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.2653, allocations: 3.938 kB / 435.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.2653, allocations: 0 / 435.8 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001484/0.2655, allocations: 93.08 kB / 435.8 MB, free: 2.641 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.399e-05/0.2655, allocations: 7.938 kB / 435.9 MB, free: 2.633 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.2655, allocations: 4 kB / 435.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.797e-05/0.2656, allocations: 7.984 kB / 435.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.316e-06/0.2656, allocations: 0 / 435.9 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.376e-06/0.2656, allocations: 4 kB / 435.9 MB, free: 2.617 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.357e-05/0.2656, allocations: 83.28 kB / 436 MB, free: 2.535 MB / 334.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2656, allocations: 0 / 436 MB, free: 2.535 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.2659, allocations: 12 kB / 436 MB, free: 2.523 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.0006019/0.2665, allocations: 0.6475 MB / 436.6 MB, free: 1.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000127/0.2666, allocations: 35.92 kB / 436.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.856e-06/0.2666, allocations: 0 / 436.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.72e-07/0.2666, allocations: 0 / 436.6 MB, free: 1.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007016/0.2673, allocations: 0.7252 MB / 437.4 MB, free: 1.066 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001196/0.2685, allocations: 1.23 MB / 438.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003085/0.2688, allocations: 0.6807 MB / 439.3 MB, free: 15.03 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.808e-05/0.2688, allocations: 4 kB / 439.3 MB, free: 15.02 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.919e-05/0.2689, allocations: 11.44 kB / 439.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2689, allocations: 0 / 439.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02235/0.2912, allocations: 1.862 MB / 441.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.58, allocations: 3.859 kB / 441.2 MB, free: 13.3 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.998573702003341]