Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.001297/0.001297, allocations: 110 kB / 20.43 MB, free: 1.453 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.001559/0.001559, allocations: 211.9 kB / 23.74 MB, free: 4.66 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.422/1.422, allocations: 230.5 MB / 257.4 MB, free: 7.992 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.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002053/0.002053, allocations: 59.91 kB / 377.8 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2623, allocations: 53.39 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003296/0.2656, allocations: 1.635 MB / 432.8 MB, free: 5.059 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.2667, allocations: 0.5181 MB / 433.3 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.691e-05/0.2668, allocations: 7.938 kB / 433.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.77e-05/0.2668, allocations: 3.938 kB / 433.3 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00019/0.267, allocations: 11.88 kB / 433.4 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002856/0.2673, allocations: 51.88 kB / 433.4 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001376/0.2674, allocations: 67.83 kB / 433.5 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001076/0.2675, allocations: 11.98 kB / 433.5 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000177/0.2677, allocations: 43.78 kB / 433.5 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.056e-05/0.2678, allocations: 31.84 kB / 433.6 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.784e-05/0.2678, allocations: 8 kB / 433.6 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.158e-05/0.2678, allocations: 8 kB / 433.6 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.761e-05/0.2679, allocations: 15.92 kB / 433.6 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.234e-05/0.2679, allocations: 27.86 kB / 433.6 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.2681, allocations: 72.08 kB / 433.7 MB, free: 4.184 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.2681, allocations: 3.984 kB / 433.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2681, allocations: 0 / 433.7 MB, free: 4.18 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.779e-06/0.2681, allocations: 0 / 433.7 MB, free: 4.18 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.0005496/0.2686, allocations: 298.1 kB / 434 MB, free: 3.859 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.2687, allocations: 15.95 kB / 434 MB, free: 3.844 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.807e-05/0.2687, allocations: 38.75 kB / 434 MB, free: 3.797 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002172/0.2689, allocations: 20.88 kB / 434.1 MB, free: 3.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002544/0.2692, allocations: 130.4 kB / 434.2 MB, free: 3.625 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.0001154/0.2693, allocations: 38.25 kB / 434.2 MB, free: 3.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.844e-05/0.2693, allocations: 8.312 kB / 434.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004112/0.2697, allocations: 172.8 kB / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.769e-06/0.2698, allocations: 0 / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.159e-05/0.2698, allocations: 0 / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.2698, allocations: 0 / 434.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001195/0.2699, allocations: 35.97 kB / 434.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002042/0.2701, allocations: 153.6 kB / 434.6 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002852/0.2704, allocations: 89.25 kB / 434.7 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001003/0.2705, allocations: 41.69 kB / 434.7 MB, free: 3.004 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.736e-05/0.2705, allocations: 3.938 kB / 434.7 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.2705, allocations: 38.56 kB / 434.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.293e-06/0.2705, allocations: 3.938 kB / 434.8 MB, free: 2.949 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003505/0.2709, allocations: 109.6 kB / 434.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.271, allocations: 101 kB / 435 MB, free: 2.719 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001323/0.2711, allocations: 125.1 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.217e-05/0.2712, allocations: 25.7 kB / 435.1 MB, free: 2.559 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.244e-05/0.2712, allocations: 92.12 kB / 435.2 MB, free: 2.465 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.565e-05/0.2712, allocations: 12.08 kB / 435.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.9e-05/0.2713, allocations: 17.72 kB / 435.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.2714, allocations: 322.8 kB / 435.5 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.431e-05/0.2715, allocations: 15.98 kB / 435.6 MB, free: 2.09 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.455e-05/0.2716, allocations: 54 kB / 435.6 MB, free: 2.016 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001284/0.2717, allocations: 81.88 kB / 435.7 MB, free: 1.914 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2717, allocations: 4 kB / 435.7 MB, free: 1.91 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001808/0.2719, allocations: 101.4 kB / 435.8 MB, free: 1.805 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.544e-05/0.2719, allocations: 8 kB / 435.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.2719, allocations: 448 / 435.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.723e-05/0.2719, allocations: 4 kB / 435.8 MB, free: 1.793 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.508e-05/0.272, allocations: 27.86 kB / 435.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.043e-06/0.272, allocations: 4.219 kB / 435.8 MB, free: 1.762 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.383e-05/0.2721, allocations: 11.92 kB / 435.9 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.075e-06/0.2721, allocations: 4 kB / 435.9 MB, free: 1.746 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 0.0001013/0.2722, allocations: 121.8 kB / 436 MB, free: 1.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.2723, allocations: 77.52 kB / 436.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.823e-05/0.2723, allocations: 12.36 kB / 436.1 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2723, allocations: 4 kB / 436.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.2724, allocations: 0 / 436.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.2724, allocations: 0 / 436.1 MB, free: 1.516 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001272/0.2725, allocations: 144.7 kB / 436.2 MB, free: 1.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.78e-06/0.2725, allocations: 7.938 kB / 436.2 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.971e-05/0.2726, allocations: 11.98 kB / 436.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.764e-06/0.2726, allocations: 0 / 436.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.2726, allocations: 4 kB / 436.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.075e-06/0.2726, allocations: 7.938 kB / 436.2 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2726, allocations: 0 / 436.2 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002218/0.2728, allocations: 125.8 kB / 436.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.934e-05/0.2728, allocations: 19.88 kB / 436.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.97e-05/0.2729, allocations: 0 / 436.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.371e-05/0.2729, allocations: 4 kB / 436.4 MB, free: 1.133 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.744e-05/0.2729, allocations: 4 kB / 436.4 MB, free: 1.129 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.273, allocations: 7.984 kB / 436.4 MB, free: 1.121 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.143e-05/0.273, allocations: 95.27 kB / 436.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.273, allocations: 0 / 436.5 MB, free: 1.027 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002023/0.2732, allocations: 12 kB / 436.5 MB, free: 1.016 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.0006218/0.2739, allocations: 0.6991 MB / 437.2 MB, free: 292 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001888/0.274, allocations: 56.53 kB / 437.3 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.274, allocations: 0 / 437.3 MB, free: 236 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.525e-05/0.2741, allocations: 8 kB / 437.3 MB, free: 228 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007259/0.2748, allocations: 0.7246 MB / 438 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001504/0.2763, allocations: 1.415 MB / 439.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003156/0.2766, allocations: 0.6963 MB / 440.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.815e-05/0.2767, allocations: 0 / 440.1 MB, free: 13.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.268e-05/0.2767, allocations: 31.42 kB / 440.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2767, allocations: 0 / 440.1 MB, free: 13.18 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02912/0.3058, allocations: 2.121 MB / 442.3 MB, free: 11.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/11.03, allocations: 6.875 kB / 442.3 MB, free: 11.17 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.389003825141117]