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.00133/0.00133, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001507/0.001507, allocations: 210.5 kB / 23.74 MB, free: 4.672 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.463/1.463, allocations: 230.6 MB / 257.5 MB, free: 8.004 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.001614/0.001614, allocations: 47.92 kB / 377.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2363, allocations: 53.36 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.002775/0.2391, allocations: 1.452 MB / 432.6 MB, free: 5.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002009/0.2393, allocations: 47.83 kB / 432.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.757e-05/0.2394, allocations: 0 / 432.6 MB, free: 5.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.531e-05/0.2394, allocations: 3.938 kB / 432.6 MB, free: 5.344 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.716e-05/0.2394, allocations: 7.875 kB / 432.6 MB, free: 5.336 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/0.2397, allocations: 27.95 kB / 432.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.859e-05/0.2398, allocations: 39.92 kB / 432.7 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.805e-05/0.2399, allocations: 4 kB / 432.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.747e-05/0.2399, allocations: 23.92 kB / 432.7 MB, free: 5.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.795e-05/0.24, allocations: 23.91 kB / 432.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.505e-05/0.24, allocations: 0 / 432.8 MB, free: 5.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.043e-05/0.24, allocations: 4 kB / 432.8 MB, free: 5.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.306e-05/0.24, allocations: 11.94 kB / 432.8 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.752e-05/0.24, allocations: 19.92 kB / 432.8 MB, free: 5.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001097/0.2402, allocations: 47.55 kB / 432.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2402, allocations: 0 / 432.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2402, allocations: 0 / 432.8 MB, free: 5.141 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.2402, allocations: 4 kB / 432.8 MB, free: 5.137 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.0004731/0.2406, allocations: 270.9 kB / 433.1 MB, free: 4.844 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.2407, allocations: 8.031 kB / 433.1 MB, free: 4.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.402e-05/0.2407, allocations: 42.73 kB / 433.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.826e-05/0.2407, allocations: 4.891 kB / 433.2 MB, free: 4.781 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002077/0.241, allocations: 122.5 kB / 433.3 MB, free: 4.637 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.0001156/0.2411, allocations: 38.25 kB / 433.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.15e-05/0.2411, allocations: 4.375 kB / 433.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002954/0.2414, allocations: 131.5 kB / 433.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.985e-06/0.2414, allocations: 0 / 433.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.857e-06/0.2414, allocations: 0 / 433.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.2414, allocations: 7.984 kB / 433.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.249e-05/0.2415, allocations: 15.98 kB / 433.5 MB, free: 4.426 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001477/0.2416, allocations: 136.7 kB / 433.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001756/0.2418, allocations: 62.62 kB / 433.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.059e-05/0.2418, allocations: 28.78 kB / 433.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.2419, allocations: 0 / 433.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.2419, allocations: 38.5 kB / 433.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.162e-06/0.2419, allocations: 0 / 433.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002058/0.2421, allocations: 73.62 kB / 433.8 MB, free: 4.023 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.123e-05/0.2422, allocations: 59.41 kB / 433.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.475e-05/0.2422, allocations: 105.8 kB / 434 MB, free: 3.84 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.961e-05/0.2423, allocations: 29.7 kB / 434 MB, free: 3.805 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.422e-05/0.2423, allocations: 84.14 kB / 434.1 MB, free: 3.719 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.741e-05/0.2423, allocations: 11.92 kB / 434.1 MB, free: 3.707 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.538e-05/0.2424, allocations: 17.72 kB / 434.1 MB, free: 3.684 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.2425, allocations: 318.8 kB / 434.4 MB, free: 3.363 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.888e-05/0.2425, allocations: 11.92 kB / 434.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.365e-05/0.2426, allocations: 40.3 kB / 434.5 MB, free: 3.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.342e-05/0.2426, allocations: 48.22 kB / 434.5 MB, free: 3.234 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.008e-06/0.2426, allocations: 4 kB / 434.5 MB, free: 3.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001197/0.2428, allocations: 77.52 kB / 434.6 MB, free: 3.148 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.459e-05/0.2428, allocations: 7.938 kB / 434.6 MB, free: 3.141 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2428, allocations: 4 kB / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.286e-05/0.2428, allocations: 0 / 434.6 MB, free: 3.137 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.253e-05/0.2428, allocations: 4 kB / 434.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.2428, allocations: 7.938 kB / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.414e-05/0.2429, allocations: 0 / 434.6 MB, free: 3.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.071e-06/0.2429, allocations: 4.438 kB / 434.6 MB, free: 3.121 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.807e-05/0.243, allocations: 121.1 kB / 434.8 MB, free: 2.996 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001168/0.2431, allocations: 69.62 kB / 434.8 MB, free: 2.922 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.193e-05/0.2431, allocations: 4.062 kB / 434.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.646e-06/0.2431, allocations: 3.984 kB / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.2431, allocations: 0 / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.2431, allocations: 0 / 434.8 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001137/0.2432, allocations: 140.7 kB / 435 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2432, allocations: 0 / 435 MB, free: 2.73 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.586e-06/0.2432, allocations: 3.938 kB / 435 MB, free: 2.727 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.168e-06/0.2432, allocations: 3.938 kB / 435 MB, free: 2.723 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.2432, allocations: 4 kB / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.173e-06/0.2432, allocations: 0 / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2432, allocations: 0 / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001371/0.2434, allocations: 89.08 kB / 435.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.435e-05/0.2434, allocations: 7.922 kB / 435.1 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.2434, allocations: 8 kB / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.345e-05/0.2435, allocations: 0 / 435.1 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.26e-06/0.2435, allocations: 4 kB / 435.1 MB, free: 2.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.973e-06/0.2435, allocations: 4 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.04e-05/0.2435, allocations: 87.27 kB / 435.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2435, allocations: 0 / 435.2 MB, free: 2.504 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002025/0.2437, allocations: 8 kB / 435.2 MB, free: 2.496 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.0005332/0.2443, allocations: 0.6477 MB / 435.8 MB, free: 1.82 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000126/0.2444, allocations: 40.17 kB / 435.9 MB, free: 1.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2444, allocations: 3.938 kB / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.2444, allocations: 0 / 435.9 MB, free: 1.777 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007269/0.2451, allocations: 0.7182 MB / 436.6 MB, free: 1.035 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001162/0.2463, allocations: 1.226 MB / 437.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.2466, allocations: 0.6807 MB / 438.5 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.369e-05/0.2466, allocations: 11.92 kB / 438.5 MB, free: 14.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.834e-05/0.2467, allocations: 15.44 kB / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2467, allocations: 0 / 438.5 MB, free: 14.97 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02806/0.2747, allocations: 1.812 MB / 440.3 MB, free: 13.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.28, allocations: 9.609 kB / 440.3 MB, free: 13.29 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: 13.764490582980216]