Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.001581/0.001581, allocations: 109.5 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.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.001766/0.001766, allocations: 184.6 kB / 23.72 MB, free: 4.699 MB / 14.72 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 1.429/1.429, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB " [Timeout remaining time 178] 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.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001584/0.001584, allocations: 47.92 kB / 370.5 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.265, allocations: 52.19 MB / 422.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003197/0.2682, allocations: 1.607 MB / 424.2 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009128/0.2691, allocations: 450.9 kB / 424.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.403e-05/0.2692, allocations: 0 / 424.7 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.327e-05/0.2692, allocations: 11.86 kB / 424.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001659/0.2694, allocations: 19.81 kB / 424.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002008/0.2696, allocations: 39.7 kB / 424.8 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001269/0.2697, allocations: 71.77 kB / 424.8 MB, free: 12.38 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.786e-05/0.2698, allocations: 11.98 kB / 424.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.2699, allocations: 31.86 kB / 424.9 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.323e-05/0.27, allocations: 35.83 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.27, allocations: 8 kB / 424.9 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.27e-05/0.27, allocations: 4 kB / 424.9 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.635e-05/0.27, allocations: 15.92 kB / 424.9 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.194e-05/0.2701, allocations: 23.81 kB / 425 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001342/0.2702, allocations: 64.14 kB / 425 MB, free: 12.2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2702, allocations: 4 kB / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2702, allocations: 0 / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.19e-06/0.2702, allocations: 0 / 425 MB, free: 12.19 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005313/0.2708, allocations: 302 kB / 425.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.2708, allocations: 8.031 kB / 425.3 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.089e-05/0.2708, allocations: 38.75 kB / 425.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.62e-05/0.2709, allocations: 12.88 kB / 425.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002251/0.2711, allocations: 138.4 kB / 425.5 MB, free: 11.64 MB / 334.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001005/0.2712, allocations: 42.25 kB / 425.5 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.324e-05/0.2712, allocations: 4.375 kB / 425.6 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003598/0.2716, allocations: 156.9 kB / 425.7 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.2716, allocations: 3.984 kB / 425.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.247e-05/0.2716, allocations: 8 kB / 425.7 MB, free: 11.41 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.2716, allocations: 7.938 kB / 425.7 MB, free: 11.4 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001134/0.2717, allocations: 35.91 kB / 425.8 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001774/0.2719, allocations: 153.5 kB / 425.9 MB, free: 11.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002424/0.2721, allocations: 89.25 kB / 426 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.02e-05/0.2722, allocations: 41.7 kB / 426 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.027e-05/0.2723, allocations: 7.938 kB / 426 MB, free: 11.01 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.601e-05/0.2723, allocations: 34.55 kB / 426.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.333e-06/0.2723, allocations: 3.938 kB / 426.1 MB, free: 10.96 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003094/0.2726, allocations: 113.5 kB / 426.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.964e-05/0.2727, allocations: 89.23 kB / 426.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.2728, allocations: 121.8 kB / 426.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.292e-05/0.2728, allocations: 25.7 kB / 426.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.083e-05/0.2729, allocations: 88.14 kB / 426.5 MB, free: 10.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.806e-05/0.2729, allocations: 7.953 kB / 426.5 MB, free: 10.48 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.886e-05/0.2729, allocations: 21.7 kB / 426.5 MB, free: 10.45 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001357/0.2731, allocations: 318.8 kB / 426.9 MB, free: 10.13 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.798e-05/0.2731, allocations: 23.92 kB / 426.9 MB, free: 10.11 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.928e-05/0.2732, allocations: 54 kB / 426.9 MB, free: 10.04 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001199/0.2733, allocations: 77.94 kB / 427 MB, free: 9.938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2733, allocations: 4.25 kB / 427 MB, free: 9.934 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001891/0.2735, allocations: 113.5 kB / 427.1 MB, free: 9.816 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.296e-05/0.2735, allocations: 7.281 kB / 427.1 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.721e-06/0.2735, allocations: 4 kB / 427.1 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.2735, allocations: 4 kB / 427.1 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.742e-05/0.2736, allocations: 12 kB / 427.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.2736, allocations: 7.984 kB / 427.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.515e-05/0.2737, allocations: 0 / 427.2 MB, free: 9.785 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.2737, allocations: 8 kB / 427.2 MB, free: 9.777 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.573e-05/0.2738, allocations: 121.8 kB / 427.3 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.2739, allocations: 77.61 kB / 427.4 MB, free: 9.566 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.632e-05/0.2739, allocations: 16.3 kB / 427.4 MB, free: 9.547 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.2739, allocations: 4 kB / 427.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.105e-06/0.274, allocations: 0 / 427.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.274, allocations: 0 / 427.4 MB, free: 9.543 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001478/0.2741, allocations: 144.7 kB / 427.5 MB, free: 9.359 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.043e-06/0.2741, allocations: 7.938 kB / 427.5 MB, free: 9.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.386e-05/0.2742, allocations: 15.92 kB / 427.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.2742, allocations: 0 / 427.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.133e-05/0.2742, allocations: 4 kB / 427.5 MB, free: 9.332 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.407e-06/0.2742, allocations: 8.188 kB / 427.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2742, allocations: 0 / 427.6 MB, free: 9.324 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002171/0.2744, allocations: 121.9 kB / 427.7 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.958e-05/0.2745, allocations: 19.88 kB / 427.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.94e-05/0.2745, allocations: 0 / 427.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.395e-05/0.2745, allocations: 4 kB / 427.7 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.274e-05/0.2746, allocations: 11.98 kB / 427.7 MB, free: 9.148 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.033e-05/0.2746, allocations: 4 kB / 427.7 MB, free: 9.145 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.328e-05/0.2746, allocations: 95.27 kB / 427.8 MB, free: 9.051 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2746, allocations: 3.938 kB / 427.8 MB, free: 9.047 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001992/0.2748, allocations: 12 kB / 427.8 MB, free: 9.035 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * 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.0006612/0.2755, allocations: 0.6992 MB / 428.5 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001837/0.2757, allocations: 55.84 kB / 428.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.2757, allocations: 0 / 428.6 MB, free: 8.25 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.515e-05/0.2757, allocations: 12 kB / 428.6 MB, free: 8.238 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006749/0.2764, allocations: 0.7185 MB / 429.3 MB, free: 7.496 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00139/0.2778, allocations: 1.399 MB / 430.7 MB, free: 5.973 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003104/0.2781, allocations: 0.6962 MB / 431.4 MB, free: 5.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.885e-05/0.2781, allocations: 11.97 kB / 431.4 MB, free: 5.238 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.747e-05/0.2782, allocations: 19.44 kB / 431.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2782, allocations: 0 / 431.4 MB, free: 5.219 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02695/0.3051, allocations: 2.086 MB / 433.5 MB, free: 3.266 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.49/10.8, allocations: 5.75 kB / 433.5 MB, free: 3.266 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.188435718882829]