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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001652/0.001652, allocations: 110.3 kB / 17.06 MB, free: 6.004 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001817/0.001817, allocations: 198.9 kB / 18 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.686/1.686, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001936/0.001936, allocations: 47.92 kB / 350.8 MB, free: 3.762 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6311/0.633, allocations: 49.44 MB / 400.2 MB, free: 8.434 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse): time 0.007937/0.6411, allocations: 1.429 MB / 401.7 MB, free: 7.32 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0004726/0.6416, allocations: 35.69 kB / 401.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00016/0.6418, allocations: 1.375 kB / 401.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 6.413e-05/0.642, allocations: 3.938 kB / 401.7 MB, free: 7.289 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001208/0.6421, allocations: 12.92 kB / 401.7 MB, free: 7.277 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005561/0.6427, allocations: 23.97 kB / 401.7 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002806/0.643, allocations: 36.45 kB / 401.8 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002246/0.6432, allocations: 12.77 kB / 401.8 MB, free: 7.234 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001414/0.6434, allocations: 22.39 kB / 401.8 MB, free: 7.219 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.661e-05/0.6435, allocations: 17.2 kB / 401.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.965e-05/0.6435, allocations: 3.438 kB / 401.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.908e-05/0.6436, allocations: 3.938 kB / 401.8 MB, free: 7.207 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.504e-05/0.6436, allocations: 14.3 kB / 401.8 MB, free: 7.195 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.696e-05/0.6437, allocations: 15.22 kB / 401.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.644, allocations: 53.7 kB / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.083e-05/0.644, allocations: 0.9688 kB / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.777e-06/0.644, allocations: 0 / 401.9 MB, free: 7.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.298e-05/0.644, allocations: 0 / 401.9 MB, free: 7.141 MB / 318.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.0008326/0.6449, allocations: 349.5 kB / 402.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.157e-05/0.645, allocations: 8.031 kB / 402.3 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.377e-05/0.645, allocations: 30.75 kB / 402.3 MB, free: 6.707 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.467e-05/0.6451, allocations: 4.938 kB / 402.3 MB, free: 6.703 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004457/0.6456, allocations: 184.2 kB / 402.5 MB, free: 6.484 MB / 318.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.0001944/0.6458, allocations: 44.84 kB / 402.5 MB, free: 6.438 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.543e-05/0.6458, allocations: 8.375 kB / 402.5 MB, free: 6.43 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005329/0.6464, allocations: 127.6 kB / 402.7 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.6464, allocations: 4 kB / 402.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.544e-05/0.6464, allocations: 0 / 402.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.6464, allocations: 0 / 402.7 MB, free: 6.289 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001032/0.6465, allocations: 23.92 kB / 402.7 MB, free: 6.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002859/0.6468, allocations: 165.7 kB / 402.8 MB, free: 6.055 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004179/0.6473, allocations: 135.7 kB / 403 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001252/0.6474, allocations: 28.84 kB / 403 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.535e-05/0.6474, allocations: 0 / 403 MB, free: 5.863 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.026e-05/0.6475, allocations: 38.5 kB / 403 MB, free: 5.816 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 2.194e-06/0.6475, allocations: 4 kB / 403 MB, free: 5.812 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0004427/0.648, allocations: 73.53 kB / 403.1 MB, free: 5.734 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001138/0.6481, allocations: 59.41 kB / 403.2 MB, free: 5.664 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001847/0.6483, allocations: 109.8 kB / 403.3 MB, free: 5.547 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.525e-05/0.6484, allocations: 25.7 kB / 403.3 MB, free: 5.516 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.949e-05/0.6485, allocations: 84.14 kB / 403.4 MB, free: 5.43 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.736e-05/0.6485, allocations: 11.89 kB / 403.4 MB, free: 5.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.121e-05/0.6486, allocations: 17.72 kB / 403.4 MB, free: 5.395 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000264/0.6489, allocations: 318.8 kB / 403.7 MB, free: 5.074 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.896e-05/0.6489, allocations: 11.98 kB / 403.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.818e-05/0.649, allocations: 32.3 kB / 403.8 MB, free: 5.016 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001175/0.6491, allocations: 56.17 kB / 403.8 MB, free: 4.945 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.6492, allocations: 0 / 403.8 MB, free: 4.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001949/0.6494, allocations: 65.62 kB / 403.9 MB, free: 4.875 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.861e-05/0.6494, allocations: 15.92 kB / 403.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.6494, allocations: 0 / 403.9 MB, free: 4.859 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.236e-05/0.6495, allocations: 4 kB / 403.9 MB, free: 4.855 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.785e-05/0.6496, allocations: 12.09 kB / 403.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.196e-05/0.6496, allocations: 0 / 403.9 MB, free: 4.844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.526e-05/0.6497, allocations: 8 kB / 403.9 MB, free: 4.836 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.144e-06/0.6497, allocations: 0 / 403.9 MB, free: 4.836 MB / 318.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.0001887/0.6499, allocations: 121.2 kB / 404 MB, free: 4.711 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001839/0.6501, allocations: 69.91 kB / 404.1 MB, free: 4.637 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.798e-05/0.6501, allocations: 7.969 kB / 404.1 MB, free: 4.625 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.016e-06/0.6501, allocations: 4 kB / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.6502, allocations: 0 / 404.1 MB, free: 4.621 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.352e-05/0.6502, allocations: 11.98 kB / 404.1 MB, free: 4.609 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001933/0.6504, allocations: 161.6 kB / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.6504, allocations: 0 / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.003e-05/0.6504, allocations: 0 / 404.3 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.848e-06/0.6504, allocations: 3.938 kB / 404.3 MB, free: 4.398 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.6505, allocations: 4 kB / 404.3 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.6505, allocations: 0 / 404.3 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.6505, allocations: 0 / 404.3 MB, free: 4.395 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002209/0.6507, allocations: 89.12 kB / 404.4 MB, free: 4.289 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.772e-05/0.6508, allocations: 92.94 kB / 404.5 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.658e-05/0.6508, allocations: 0 / 404.5 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.405e-05/0.6509, allocations: 4 kB / 404.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.889e-06/0.6509, allocations: 0 / 404.5 MB, free: 4.176 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.349e-05/0.651, allocations: 4 kB / 404.5 MB, free: 4.172 MB / 318.1 MB Notification: Performance of sorting global known variables: time 7.692e-05/0.651, allocations: 91.2 kB / 404.6 MB, free: 4.082 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.651, allocations: 0 / 404.6 MB, free: 4.082 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003369/0.6514, allocations: 8 kB / 404.6 MB, free: 4.074 MB / 318.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.0008252/0.6522, allocations: 0.6514 MB / 405.2 MB, free: 3.395 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0004378/0.6527, allocations: 35.92 kB / 405.3 MB, free: 3.359 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.6527, allocations: 0 / 405.3 MB, free: 3.359 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.693e-06/0.6527, allocations: 0 / 405.3 MB, free: 3.359 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00108/0.6538, allocations: 0.7186 MB / 406 MB, free: 2.617 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.6558, allocations: 1.233 MB / 407.2 MB, free: 1.281 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005317/0.6564, allocations: 0.6844 MB / 407.9 MB, free: 0.5703 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.732e-05/0.6564, allocations: 4 kB / 407.9 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.163e-05/0.6565, allocations: 19.42 kB / 407.9 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of SimCode: time 7.52e-07/0.6565, allocations: 0 / 407.9 MB, free: 0.5469 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05597/0.7125, allocations: 1.715 MB / 409.6 MB, free: 14.97 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.47/15.18, allocations: 0.625 kB / 409.6 MB, free: 14.97 MB / 334.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/TickBasedPulse/TickBasedPulse.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.TickBasedPulse.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches