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.000808/0.000808, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007772/0.0007772, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8708/0.8708, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.373e-06/1.373e-06, allocations: 0 / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.05e-05/2.187e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002066/0.002088, allocations: 1.454 MB / 326 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000193/0.002281, allocations: 39.89 kB / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.526e-05/0.002336, allocations: 0 / 326.1 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.718e-05/0.002364, allocations: 7.922 kB / 326.1 MB, free: 14.44 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.297e-05/0.002417, allocations: 7.875 kB / 326.1 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.002633, allocations: 31.91 kB / 326.1 MB, free: 14.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.821e-05/0.002711, allocations: 35.92 kB / 326.1 MB, free: 14.37 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.886e-05/0.00281, allocations: 7.984 kB / 326.1 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.395e-05/0.002874, allocations: 27.91 kB / 326.2 MB, free: 14.33 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.245e-05/0.002906, allocations: 15.98 kB / 326.2 MB, free: 14.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.078e-05/0.002927, allocations: 4 kB / 326.2 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.735e-06/0.002935, allocations: 4 kB / 326.2 MB, free: 14.31 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.821e-05/0.002953, allocations: 11.92 kB / 326.2 MB, free: 14.3 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.632e-05/0.002979, allocations: 15.98 kB / 326.2 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.093e-05/0.00307, allocations: 43.88 kB / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.773e-06/0.003072, allocations: 0 / 326.3 MB, free: 14.24 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.003074, allocations: 3.984 kB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.807e-06/0.003078, allocations: 0 / 326.3 MB, free: 14.23 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.0003459/0.003424, allocations: 273.2 kB / 326.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.864e-05/0.003462, allocations: 12.03 kB / 326.6 MB, free: 13.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.898e-05/0.003491, allocations: 34.75 kB / 326.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.716e-05/0.003519, allocations: 8.891 kB / 326.6 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001518/0.00367, allocations: 125.7 kB / 326.7 MB, free: 13.73 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 9.99e-05/0.00377, allocations: 34.25 kB / 326.7 MB, free: 13.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.158e-06/0.003779, allocations: 4.375 kB / 326.8 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002164/0.003996, allocations: 131.7 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.174e-06/0.004003, allocations: 192 / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.004011, allocations: 4.375 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.004016, allocations: 3.938 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.55e-05/0.004062, allocations: 16 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001123/0.004174, allocations: 132.7 kB / 327 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001312/0.004305, allocations: 54.69 kB / 327.1 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.343e-05/0.004339, allocations: 24.78 kB / 327.1 MB, free: 13.26 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.969e-06/0.004348, allocations: 7.938 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.004369, allocations: 30.56 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of pre-optimization done (n=5): time 1.804e-06/0.004371, allocations: 3.984 kB / 327.2 MB, free: 13.21 MB / 298.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001513/0.004522, allocations: 77.62 kB / 327.2 MB, free: 13.12 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.306e-05/0.004565, allocations: 59.39 kB / 327.3 MB, free: 13.05 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.955e-05/0.004614, allocations: 101.9 kB / 327.4 MB, free: 12.95 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.00463, allocations: 29.7 kB / 327.4 MB, free: 12.91 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.861e-05/0.004658, allocations: 92.11 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.293e-05/0.004671, allocations: 11.89 kB / 327.5 MB, free: 12.8 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.375e-05/0.004695, allocations: 13.72 kB / 327.5 MB, free: 12.79 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.475e-05/0.00479, allocations: 318.8 kB / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.06e-05/0.0048, allocations: 3.984 kB / 327.8 MB, free: 12.46 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.718e-05/0.004818, allocations: 21.72 kB / 327.9 MB, free: 12.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.77e-05/0.004845, allocations: 22.16 kB / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.004847, allocations: 0 / 327.9 MB, free: 12.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.006e-05/0.004897, allocations: 57.62 kB / 327.9 MB, free: 12.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.004911, allocations: 4 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.243e-06/0.004918, allocations: 4 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.518e-05/0.004933, allocations: 7.938 kB / 328 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.4e-05/0.004977, allocations: 4 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.761e-06/0.004983, allocations: 0 / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.136e-05/0.004994, allocations: 0 / 328 MB, free: 12.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.739e-06/0.004999, allocations: 3.938 kB / 328 MB, free: 12.32 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.pulse.startOutput,pulse.startOutput,$CLKPRE.pulse.counter,pulse.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (pulse.startOutput,pulse.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.89e-05/0.005068, allocations: 113.8 kB / 328.1 MB, free: 12.2 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.66e-05/0.005135, allocations: 69.58 kB / 328.1 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.466e-05/0.005159, allocations: 12.17 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.005163, allocations: 7.938 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.005169, allocations: 0 / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.005174, allocations: 0 / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.377e-05/0.005247, allocations: 128.7 kB / 328.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.005249, allocations: 0 / 328.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.196e-06/0.005252, allocations: 0 / 328.3 MB, free: 11.94 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.943e-06/0.005254, allocations: 4 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.377e-06/0.005263, allocations: 0 / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.005265, allocations: 3.938 kB / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.005266, allocations: 0 / 328.3 MB, free: 11.93 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.571e-05/0.005352, allocations: 97.02 kB / 328.4 MB, free: 11.82 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.142e-05/0.005363, allocations: 7.984 kB / 328.4 MB, free: 11.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.005379, allocations: 4 kB / 328.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.948e-05/0.005408, allocations: 3.938 kB / 328.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.948e-06/0.005412, allocations: 0 / 328.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.212e-06/0.005418, allocations: 7.938 kB / 328.4 MB, free: 11.79 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.863e-05/0.005457, allocations: 91.27 kB / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005457, allocations: 0 / 328.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001441/0.005601, allocations: 8 kB / 328.5 MB, free: 11.7 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.0003624/0.005964, allocations: 0.6438 MB / 329.2 MB, free: 11.02 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001032/0.006067, allocations: 31.92 kB / 329.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.006069, allocations: 0 / 329.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.32e-07/0.00607, allocations: 0 / 329.2 MB, free: 10.99 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004805/0.006551, allocations: 0.7102 MB / 329.9 MB, free: 10.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007354/0.007286, allocations: 1.167 MB / 331.1 MB, free: 9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.92e-05/0.007325, allocations: 63.34 kB / 331.1 MB, free: 8.918 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.294e-05/0.007348, allocations: 16.53 kB / 331.1 MB, free: 8.902 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.706e-05/0.007385, allocations: 12.5 kB / 331.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of SimCode: time 6.01e-07/0.007386, allocations: 0 / 331.2 MB, free: 8.891 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01477/0.02216, allocations: 2.377 MB / 333.5 MB, free: 6.645 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.6/6.622, allocations: 2.625 kB / 333.5 MB, free: 6.645 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/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: 8.237687243148685]