Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001673/0.001673, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002291/0.002291, allocations: 205.5 kB / 24.51 MB, free: 3.945 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 230.5 MB / 258.2 MB, free: 7.805 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002563/0.002563, allocations: 63.91 kB / 378.5 MB, free: 2.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3434/0.346, allocations: 53.4 MB / 431.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.003469/0.3495, allocations: 1.455 MB / 433.4 MB, free: 5.012 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003353/0.3498, allocations: 47.88 kB / 433.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.3499, allocations: 3.938 kB / 433.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.162e-05/0.35, allocations: 0 / 433.4 MB, free: 4.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.687e-05/0.3501, allocations: 3.938 kB / 433.4 MB, free: 4.957 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004524/0.3505, allocations: 23.97 kB / 433.4 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001865/0.3507, allocations: 43.8 kB / 433.5 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001833/0.3509, allocations: 11.98 kB / 433.5 MB, free: 4.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001139/0.351, allocations: 12 kB / 433.5 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.447e-05/0.3511, allocations: 27.86 kB / 433.5 MB, free: 4.84 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.528e-05/0.3511, allocations: 4 kB / 433.5 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.099e-05/0.3511, allocations: 4 kB / 433.5 MB, free: 4.832 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.975e-05/0.3512, allocations: 15.97 kB / 433.5 MB, free: 4.816 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.14e-05/0.3513, allocations: 11.94 kB / 433.6 MB, free: 4.805 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001931/0.3515, allocations: 39.86 kB / 433.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.644e-06/0.3515, allocations: 0 / 433.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.404e-06/0.3515, allocations: 3.938 kB / 433.6 MB, free: 4.762 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.924e-06/0.3515, allocations: 4 kB / 433.6 MB, free: 4.758 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.0006241/0.3521, allocations: 268.6 kB / 433.9 MB, free: 4.465 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.068e-05/0.3522, allocations: 11.97 kB / 433.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.96e-05/0.3522, allocations: 8.188 kB / 433.9 MB, free: 4.445 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.784e-05/0.3522, allocations: 34.75 kB / 433.9 MB, free: 4.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.824e-05/0.3523, allocations: 8.891 kB / 433.9 MB, free: 4.395 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003418/0.3526, allocations: 122.4 kB / 434 MB, free: 4.25 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.0001525/0.3528, allocations: 38.25 kB / 434.1 MB, free: 4.207 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.655e-05/0.3528, allocations: 4.375 kB / 434.1 MB, free: 4.203 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000375/0.3532, allocations: 123.4 kB / 434.2 MB, free: 4.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.3532, allocations: 7.938 kB / 434.2 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.183e-05/0.3532, allocations: 0 / 434.2 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.81e-06/0.3532, allocations: 0 / 434.2 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.17e-05/0.3533, allocations: 23.98 kB / 434.2 MB, free: 4.039 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001991/0.3535, allocations: 128.7 kB / 434.4 MB, free: 3.871 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002192/0.3537, allocations: 62.66 kB / 434.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.061e-05/0.3538, allocations: 16.86 kB / 434.4 MB, free: 3.781 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.431e-05/0.3538, allocations: 4 kB / 434.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.089e-05/0.3538, allocations: 42.38 kB / 434.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of pre-optimization done (n=5): time 1.092e-06/0.3538, allocations: 0 / 434.5 MB, free: 3.727 MB / 334.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002703/0.3541, allocations: 81.67 kB / 434.6 MB, free: 3.641 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.195e-05/0.3542, allocations: 59.41 kB / 434.6 MB, free: 3.57 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001176/0.3543, allocations: 105.8 kB / 434.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.468e-05/0.3543, allocations: 25.7 kB / 434.8 MB, free: 3.426 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.3544, allocations: 80.14 kB / 434.8 MB, free: 3.344 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.409e-05/0.3544, allocations: 7.953 kB / 434.8 MB, free: 3.336 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.279e-05/0.3545, allocations: 21.72 kB / 434.9 MB, free: 3.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001507/0.3546, allocations: 314.8 kB / 435.2 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.147e-05/0.3546, allocations: 8 kB / 435.2 MB, free: 2.984 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.961e-05/0.3547, allocations: 52.19 kB / 435.2 MB, free: 2.918 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.233e-05/0.3548, allocations: 48.23 kB / 435.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.003e-06/0.3548, allocations: 0 / 435.3 MB, free: 2.855 MB / 334.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001245/0.3549, allocations: 85.45 kB / 435.4 MB, free: 2.766 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.518e-05/0.3549, allocations: 4 kB / 435.4 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3549, allocations: 0 / 435.4 MB, free: 2.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.02e-05/0.3549, allocations: 8.156 kB / 435.4 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.207e-05/0.355, allocations: 4 kB / 435.4 MB, free: 2.75 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.355, allocations: 3.984 kB / 435.4 MB, free: 2.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.014e-05/0.355, allocations: 4 kB / 435.4 MB, free: 2.742 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-06/0.355, allocations: 0 / 435.4 MB, free: 2.742 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.096e-05/0.3551, allocations: 117.8 kB / 435.5 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.3552, allocations: 65.56 kB / 435.6 MB, free: 2.547 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.373e-05/0.3553, allocations: 8.062 kB / 435.6 MB, free: 2.535 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3553, allocations: 3.938 kB / 435.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.029e-06/0.3553, allocations: 448 / 435.6 MB, free: 2.531 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.115e-06/0.3553, allocations: 4 kB / 435.6 MB, free: 2.527 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.3554, allocations: 124.8 kB / 435.7 MB, free: 2.363 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.3554, allocations: 4 kB / 435.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.918e-06/0.3554, allocations: 11.88 kB / 435.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.3554, allocations: 0 / 435.7 MB, free: 2.348 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.218e-05/0.3554, allocations: 4 kB / 435.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3554, allocations: 0 / 435.7 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3554, allocations: 3.984 kB / 435.7 MB, free: 2.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001476/0.3556, allocations: 93.02 kB / 435.8 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.234e-05/0.3556, allocations: 3.938 kB / 435.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.3556, allocations: 4 kB / 435.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.699e-05/0.3556, allocations: 12 kB / 435.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.585e-06/0.3557, allocations: 0 / 435.8 MB, free: 2.211 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.867e-06/0.3557, allocations: 3.984 kB / 435.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.554e-05/0.3557, allocations: 79.28 kB / 435.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3557, allocations: 0 / 435.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001969/0.3559, allocations: 12 kB / 435.9 MB, free: 2.117 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.0005493/0.3565, allocations: 0.6476 MB / 436.6 MB, free: 1.441 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001286/0.3566, allocations: 28.23 kB / 436.6 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3566, allocations: 4.062 kB / 436.6 MB, free: 1.41 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.11e-07/0.3566, allocations: 4 kB / 436.6 MB, free: 1.406 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007913/0.3574, allocations: 0.7174 MB / 437.3 MB, free: 0.668 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001349/0.3587, allocations: 1.228 MB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.271e-05/0.3588, allocations: 71.33 kB / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.289e-05/0.3588, allocations: 288 / 438.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.632e-05/0.3589, allocations: 19.5 kB / 438.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3589, allocations: 0 / 438.6 MB, free: 15.23 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0223/0.3812, allocations: 1.932 MB / 440.6 MB, free: 13.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.71/11.1, allocations: 19.8 kB / 440.6 MB, free: 13.41 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.750742426957004]