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.001246/0.001246, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.00135/0.00135, allocations: 209 kB / 23.73 MB, free: 4.523 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.399/1.399, allocations: 230.6 MB / 257.5 MB, free: 7.789 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001498/0.001498, allocations: 51.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2712/0.2727, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002696/0.2754, allocations: 1.455 MB / 432.5 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001944/0.2756, allocations: 39.84 kB / 432.6 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.61e-05/0.2756, allocations: 4 kB / 432.6 MB, free: 5.141 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.227e-05/0.2757, allocations: 7.938 kB / 432.6 MB, free: 5.133 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.505e-05/0.2757, allocations: 11.92 kB / 432.6 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.2759, allocations: 23.97 kB / 432.6 MB, free: 5.098 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001/0.276, allocations: 43.84 kB / 432.7 MB, free: 5.055 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.2762, allocations: 11.8 kB / 432.7 MB, free: 5.047 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.728e-05/0.2762, allocations: 15.98 kB / 432.7 MB, free: 5.031 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.338e-05/0.2763, allocations: 19.86 kB / 432.7 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.715e-05/0.2763, allocations: 4 kB / 432.7 MB, free: 5.008 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.019e-05/0.2763, allocations: 4 kB / 432.7 MB, free: 5.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.38e-05/0.2763, allocations: 7.984 kB / 432.7 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.443e-05/0.2763, allocations: 19.92 kB / 432.7 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001084/0.2765, allocations: 39.88 kB / 432.8 MB, free: 4.938 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.2765, allocations: 3.938 kB / 432.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2765, allocations: 0 / 432.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.669e-06/0.2765, allocations: 0 / 432.8 MB, free: 4.934 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.0004806/0.2769, allocations: 274.9 kB / 433.1 MB, free: 4.637 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.137e-05/0.277, allocations: 12.03 kB / 433.1 MB, free: 4.625 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.927e-05/0.277, allocations: 34.75 kB / 433.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.2771, allocations: 8.891 kB / 433.1 MB, free: 4.574 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002264/0.2773, allocations: 126.5 kB / 433.2 MB, free: 4.426 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.0001042/0.2774, allocations: 34.27 kB / 433.3 MB, free: 4.387 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.516e-05/0.2774, allocations: 8.375 kB / 433.3 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.2777, allocations: 123.5 kB / 433.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.717e-06/0.2777, allocations: 0 / 433.4 MB, free: 4.246 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.366e-05/0.2777, allocations: 7.938 kB / 433.4 MB, free: 4.238 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.2777, allocations: 4 kB / 433.4 MB, free: 4.234 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.021e-05/0.2778, allocations: 15.98 kB / 433.4 MB, free: 4.219 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001616/0.278, allocations: 128.7 kB / 433.5 MB, free: 4.051 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001765/0.2781, allocations: 62.62 kB / 433.6 MB, free: 3.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.949e-05/0.2782, allocations: 24.84 kB / 433.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.222e-06/0.2782, allocations: 0 / 433.6 MB, free: 3.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.2782, allocations: 42.44 kB / 433.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.012e-06/0.2782, allocations: 0 / 433.7 MB, free: 3.902 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002406/0.2785, allocations: 69.69 kB / 433.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.61e-05/0.2785, allocations: 63.34 kB / 433.8 MB, free: 3.754 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.796e-05/0.2786, allocations: 106 kB / 433.9 MB, free: 3.641 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.802e-05/0.2787, allocations: 25.7 kB / 433.9 MB, free: 3.609 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.393e-05/0.2787, allocations: 84.14 kB / 434 MB, free: 3.523 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.459e-05/0.2787, allocations: 7.953 kB / 434 MB, free: 3.516 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.2788, allocations: 25.7 kB / 434 MB, free: 3.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001539/0.2789, allocations: 314.8 kB / 434.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.757e-05/0.2789, allocations: 4.25 kB / 434.4 MB, free: 3.164 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.638e-05/0.279, allocations: 48.27 kB / 434.4 MB, free: 3.102 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.56e-05/0.2791, allocations: 48.23 kB / 434.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.883e-06/0.2791, allocations: 0 / 434.5 MB, free: 3.039 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.000108/0.2792, allocations: 81.52 kB / 434.5 MB, free: 2.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.785e-05/0.2792, allocations: 7.938 kB / 434.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.2792, allocations: 0 / 434.5 MB, free: 2.945 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.927e-05/0.2792, allocations: 7.984 kB / 434.5 MB, free: 2.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.439e-05/0.2793, allocations: 4 kB / 434.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.09e-06/0.2793, allocations: 0 / 434.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.446e-05/0.2793, allocations: 4 kB / 434.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.663e-06/0.2793, allocations: 4 kB / 434.6 MB, free: 2.926 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.0001015/0.2794, allocations: 122 kB / 434.7 MB, free: 2.797 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.2795, allocations: 69.61 kB / 434.7 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.813e-05/0.2795, allocations: 8.062 kB / 434.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.213e-06/0.2795, allocations: 0 / 434.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.258e-06/0.2795, allocations: 0 / 434.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.2795, allocations: 0 / 434.8 MB, free: 2.711 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.2797, allocations: 128.8 kB / 434.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.82e-07/0.2797, allocations: 0 / 434.9 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.816e-06/0.2797, allocations: 7.922 kB / 434.9 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.2797, allocations: 3.938 kB / 434.9 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.286e-06/0.2797, allocations: 4 kB / 434.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.2797, allocations: 0 / 434.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2797, allocations: 0 / 434.9 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001472/0.2798, allocations: 96.95 kB / 435 MB, free: 2.414 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.314e-05/0.2798, allocations: 7.938 kB / 435 MB, free: 2.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.926e-05/0.2799, allocations: 4 kB / 435 MB, free: 2.402 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.968e-05/0.2799, allocations: 11.98 kB / 435 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.875e-06/0.2799, allocations: 0 / 435 MB, free: 2.391 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.003e-06/0.2799, allocations: 0 / 435 MB, free: 2.391 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.191e-05/0.28, allocations: 87.28 kB / 435.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.28, allocations: 0 / 435.1 MB, free: 2.305 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001992/0.2802, allocations: 4 kB / 435.1 MB, free: 2.301 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.0005799/0.2808, allocations: 0.6553 MB / 435.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001242/0.2809, allocations: 35.92 kB / 435.8 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.2809, allocations: 0 / 435.8 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 9.02e-07/0.2809, allocations: 0 / 435.8 MB, free: 1.582 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007542/0.2816, allocations: 0.7103 MB / 436.5 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001226/0.2829, allocations: 1.23 MB / 437.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.732e-05/0.2829, allocations: 67.34 kB / 437.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.06e-05/0.283, allocations: 0 / 437.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.204e-05/0.283, allocations: 15.44 kB / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.283, allocations: 0 / 437.8 MB, free: 15.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02786/0.3109, allocations: 2.289 MB / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/10.61, allocations: 11.25 kB / 440.1 MB, free: 13.26 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.907566201000009]