Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001906/0.001906, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001156/0.001156, allocations: 149.4 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9122/0.9122, allocations: 173.4 MB / 200.5 MB, free: 9.418 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.212e-06/1.212e-06, allocations: 0 / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.142e-05/2.263e-05, allocations: 3.688 kB / 318.4 MB, free: 6.355 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.001992/0.002014, allocations: 1.431 MB / 319.9 MB, free: 4.91 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001653/0.00218, allocations: 31.91 kB / 319.9 MB, free: 4.879 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.296e-05/0.002253, allocations: 11.81 kB / 319.9 MB, free: 4.867 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 2.959e-05/0.002282, allocations: 0 / 319.9 MB, free: 4.867 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 5.228e-05/0.002335, allocations: 7.938 kB / 319.9 MB, free: 4.859 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002412/0.002576, allocations: 42.75 kB / 320 MB, free: 4.82 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 8.323e-05/0.002659, allocations: 43.84 kB / 320 MB, free: 4.777 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.778e-05/0.002757, allocations: 4 kB / 320 MB, free: 4.773 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.1e-05/0.002828, allocations: 23.97 kB / 320 MB, free: 4.75 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.284e-05/0.002861, allocations: 19.92 kB / 320 MB, free: 4.73 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 2.419e-05/0.002885, allocations: 7.984 kB / 320 MB, free: 4.723 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.071e-05/0.002895, allocations: 4 kB / 320.1 MB, free: 4.719 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 1.778e-05/0.002913, allocations: 0 / 320.1 MB, free: 4.719 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 2.817e-05/0.002941, allocations: 16 kB / 320.1 MB, free: 4.703 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001122/0.003054, allocations: 47.8 kB / 320.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.003056, allocations: 0 / 320.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.003057, allocations: 0 / 320.1 MB, free: 4.656 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.003061, allocations: 0 / 320.1 MB, free: 4.656 MB / 282.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.0003951/0.003456, allocations: 274.3 kB / 320.4 MB, free: 4.355 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.003502, allocations: 16.86 kB / 320.4 MB, free: 4.34 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.779e-05/0.00354, allocations: 38.75 kB / 320.4 MB, free: 4.293 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.198e-05/0.003572, allocations: 12.88 kB / 320.4 MB, free: 4.281 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000183/0.003755, allocations: 113.8 kB / 320.6 MB, free: 4.145 MB / 282.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 0.0001101/0.003865, allocations: 34.27 kB / 320.6 MB, free: 4.105 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.387e-06/0.003874, allocations: 4.375 kB / 320.6 MB, free: 4.102 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002406/0.004115, allocations: 127.8 kB / 320.7 MB, free: 3.965 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.004122, allocations: 192 / 320.7 MB, free: 3.965 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.368e-06/0.004131, allocations: 12.38 kB / 320.7 MB, free: 3.953 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.004137, allocations: 3.938 kB / 320.7 MB, free: 3.949 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.926e-05/0.004186, allocations: 15.98 kB / 320.8 MB, free: 3.934 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001058/0.004292, allocations: 124.8 kB / 320.9 MB, free: 3.77 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001374/0.004429, allocations: 58.62 kB / 320.9 MB, free: 3.703 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.407e-05/0.004463, allocations: 24.84 kB / 321 MB, free: 3.676 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.727e-06/0.004472, allocations: 0 / 321 MB, free: 3.676 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.613e-05/0.004488, allocations: 30.56 kB / 321 MB, free: 3.637 MB / 282.7 MB Notification: Performance of pre-optimization done (n=5): time 8.42e-07/0.004489, allocations: 4 kB / 321 MB, free: 3.633 MB / 282.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001607/0.00465, allocations: 81.52 kB / 321.1 MB, free: 3.547 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.575e-05/0.004696, allocations: 59.41 kB / 321.1 MB, free: 3.477 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.145e-05/0.004757, allocations: 109.8 kB / 321.2 MB, free: 3.359 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.004768, allocations: 25.7 kB / 321.3 MB, free: 3.328 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.865e-05/0.004797, allocations: 80.14 kB / 321.3 MB, free: 3.246 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.406e-05/0.004811, allocations: 11.95 kB / 321.4 MB, free: 3.234 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.441e-05/0.004835, allocations: 21.64 kB / 321.4 MB, free: 3.207 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 7.765e-05/0.004913, allocations: 314.8 kB / 321.7 MB, free: 2.891 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.162e-05/0.004924, allocations: 4 kB / 321.7 MB, free: 2.887 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.85e-05/0.004943, allocations: 21.7 kB / 321.7 MB, free: 2.859 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.457e-05/0.004977, allocations: 37.59 kB / 321.7 MB, free: 2.816 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.00498, allocations: 0 / 321.7 MB, free: 2.816 MB / 282.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 5.865e-05/0.005038, allocations: 45.7 kB / 321.8 MB, free: 2.766 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.328e-05/0.005052, allocations: 6.969 kB / 321.8 MB, free: 2.762 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.005058, allocations: 3.984 kB / 321.8 MB, free: 2.758 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.005071, allocations: 3.938 kB / 321.8 MB, free: 2.754 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.072e-05/0.005111, allocations: 8.375 kB / 321.8 MB, free: 2.746 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.659e-06/0.005116, allocations: 0 / 321.8 MB, free: 2.746 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.247e-05/0.005128, allocations: 4 kB / 321.8 MB, free: 2.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-06/0.005132, allocations: 8.062 kB / 321.8 MB, free: 2.734 MB / 282.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.868e-05/0.005201, allocations: 117.8 kB / 321.9 MB, free: 2.609 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.202e-05/0.005273, allocations: 65.64 kB / 322 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.082e-05/0.005294, allocations: 4.125 kB / 322 MB, free: 2.531 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.005297, allocations: 4.125 kB / 322 MB, free: 2.527 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.005301, allocations: 0 / 322 MB, free: 2.527 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.005306, allocations: 3.984 kB / 322 MB, free: 2.523 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.455e-05/0.00537, allocations: 132.7 kB / 322.1 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.005371, allocations: 0 / 322.1 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.466e-06/0.005375, allocations: 0 / 322.1 MB, free: 2.352 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.005377, allocations: 3.984 kB / 322.1 MB, free: 2.348 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.513e-06/0.005384, allocations: 4 kB / 322.1 MB, free: 2.344 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.966e-06/0.005387, allocations: 7.875 kB / 322.2 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.005387, allocations: 0 / 322.2 MB, free: 2.336 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.228e-05/0.00547, allocations: 85.12 kB / 322.2 MB, free: 2.234 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.254e-05/0.005482, allocations: 11.95 kB / 322.3 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.376e-05/0.005496, allocations: 0 / 322.3 MB, free: 2.223 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.03e-05/0.005526, allocations: 11.92 kB / 322.3 MB, free: 2.211 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.094e-06/0.005528, allocations: 0 / 322.3 MB, free: 2.211 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.005534, allocations: 0 / 322.3 MB, free: 2.211 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.27e-05/0.005567, allocations: 87.28 kB / 322.3 MB, free: 2.125 MB / 282.7 MB Notification: Performance of sort global known variables: time 5e-08/0.005567, allocations: 0 / 322.3 MB, free: 2.125 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000127/0.005694, allocations: 8 kB / 322.4 MB, free: 2.117 MB / 282.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.0004264/0.00612, allocations: 0.6516 MB / 323 MB, free: 1.438 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 9.288e-05/0.006213, allocations: 23.92 kB / 323 MB, free: 1.414 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.006216, allocations: 8 kB / 323 MB, free: 1.406 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.006217, allocations: 0 / 323 MB, free: 1.406 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004745/0.006691, allocations: 0.7218 MB / 323.8 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007178/0.007409, allocations: 1.155 MB / 324.9 MB, free: 15.41 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.824e-05/0.007447, allocations: 67.34 kB / 325 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 2.068e-05/0.007468, allocations: 0 / 325 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.465e-05/0.007503, allocations: 12.5 kB / 325 MB, free: 15.31 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.007503, allocations: 4 kB / 325 MB, free: 15.31 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01696/0.02446, allocations: 2.367 MB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.888/6.913, allocations: 6.984 kB / 327.4 MB, free: 13.07 MB / 298.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_BooleanSignals_TickBasedPulse.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.602357504889369]