Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001371/0.001371, allocations: 115.8 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002349/0.002349, allocations: 213.3 kB / 23.75 MB, free: 4.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.473/1.473, allocations: 230.6 MB / 257.5 MB, free: 7.996 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 47.92 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2783, allocations: 53.35 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002989/0.2813, allocations: 1.625 MB / 432.8 MB, free: 5.207 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009886/0.2822, allocations: 0.5181 MB / 433.3 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.142e-05/0.2823, allocations: 3.938 kB / 433.3 MB, free: 4.68 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.23e-05/0.2824, allocations: 7.938 kB / 433.3 MB, free: 4.672 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001522/0.2825, allocations: 7.875 kB / 433.3 MB, free: 4.664 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002448/0.2828, allocations: 55.86 kB / 433.4 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001318/0.2829, allocations: 67.84 kB / 433.4 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.325e-05/0.283, allocations: 11.98 kB / 433.4 MB, free: 4.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001641/0.2831, allocations: 43.78 kB / 433.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.86e-05/0.2832, allocations: 35.84 kB / 433.5 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.818e-05/0.2832, allocations: 4 kB / 433.5 MB, free: 4.449 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.123e-05/0.2833, allocations: 8 kB / 433.5 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.723e-05/0.2833, allocations: 19.91 kB / 433.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.684e-05/0.2834, allocations: 27.86 kB / 433.6 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001524/0.2835, allocations: 68.08 kB / 433.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.947e-06/0.2835, allocations: 0 / 433.6 MB, free: 4.332 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.2835, allocations: 4 kB / 433.6 MB, free: 4.328 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.2835, allocations: 0 / 433.6 MB, free: 4.328 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.0005211/0.2841, allocations: 302 kB / 433.9 MB, free: 4.004 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2841, allocations: 12.03 kB / 433.9 MB, free: 3.992 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.857e-05/0.2841, allocations: 34.75 kB / 434 MB, free: 3.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002097/0.2843, allocations: 20.88 kB / 434 MB, free: 3.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002384/0.2846, allocations: 142.3 kB / 434.1 MB, free: 3.766 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.0001093/0.2847, allocations: 34.27 kB / 434.2 MB, free: 3.727 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2e-05/0.2847, allocations: 12.31 kB / 434.2 MB, free: 3.715 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003784/0.2851, allocations: 164.8 kB / 434.3 MB, free: 3.535 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.146e-05/0.2851, allocations: 3.938 kB / 434.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.929e-06/0.2851, allocations: 0 / 434.4 MB, free: 3.531 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2851, allocations: 4 kB / 434.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000124/0.2852, allocations: 35.97 kB / 434.4 MB, free: 3.492 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001824/0.2854, allocations: 157.6 kB / 434.5 MB, free: 3.293 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00026/0.2857, allocations: 85.25 kB / 434.6 MB, free: 3.191 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.882e-05/0.2858, allocations: 41.7 kB / 434.7 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.259e-05/0.2858, allocations: 3.938 kB / 434.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.373e-05/0.2858, allocations: 38.5 kB / 434.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.273e-06/0.2858, allocations: 0 / 434.7 MB, free: 3.094 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003352/0.2862, allocations: 113.5 kB / 434.8 MB, free: 2.977 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.777e-05/0.2862, allocations: 89.23 kB / 434.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001051/0.2863, allocations: 123.7 kB / 435 MB, free: 2.742 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.2864, allocations: 29.64 kB / 435.1 MB, free: 2.707 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.397e-05/0.2864, allocations: 96.12 kB / 435.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.141e-05/0.2864, allocations: 3.953 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.717e-05/0.2865, allocations: 29.7 kB / 435.2 MB, free: 2.57 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.2866, allocations: 310.8 kB / 435.5 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.346e-05/0.2867, allocations: 15.98 kB / 435.5 MB, free: 2.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.689e-05/0.2867, allocations: 62 kB / 435.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000133/0.2869, allocations: 81.88 kB / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.2869, allocations: 256 / 435.6 MB, free: 2.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001925/0.2871, allocations: 101.6 kB / 435.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.659e-05/0.2871, allocations: 12.02 kB / 435.8 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.707e-06/0.2871, allocations: 8.188 kB / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.512e-05/0.2871, allocations: 0 / 435.8 MB, free: 1.934 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.19e-05/0.2872, allocations: 15.94 kB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.2872, allocations: 7.938 kB / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.627e-05/0.2873, allocations: 15.92 kB / 435.8 MB, free: 1.895 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.356e-06/0.2873, allocations: 4 kB / 435.8 MB, free: 1.891 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.669e-05/0.2874, allocations: 113.8 kB / 435.9 MB, free: 1.77 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001309/0.2875, allocations: 73.58 kB / 436 MB, free: 1.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.069e-05/0.2875, allocations: 24.3 kB / 436 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.2875, allocations: 0 / 436 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.2875, allocations: 0 / 436 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.925e-06/0.2876, allocations: 0 / 436 MB, free: 1.664 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001357/0.2877, allocations: 144.7 kB / 436.2 MB, free: 1.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.2877, allocations: 3.938 kB / 436.2 MB, free: 1.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.714e-05/0.2878, allocations: 15.92 kB / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2878, allocations: 0 / 436.2 MB, free: 1.461 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.422e-05/0.2878, allocations: 8 kB / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.2878, allocations: 0 / 436.2 MB, free: 1.453 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.2878, allocations: 4 kB / 436.2 MB, free: 1.449 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000234/0.288, allocations: 129.8 kB / 436.3 MB, free: 1.301 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.2881, allocations: 19.88 kB / 436.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.2881, allocations: 4 kB / 436.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.776e-05/0.2882, allocations: 4 kB / 436.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.916e-05/0.2882, allocations: 7.984 kB / 436.3 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.2882, allocations: 4 kB / 436.4 MB, free: 1.262 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.525e-05/0.2883, allocations: 97.94 kB / 436.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2883, allocations: 0 / 436.4 MB, free: 1.168 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002186/0.2885, allocations: 16 kB / 436.5 MB, free: 1.152 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.0006182/0.2891, allocations: 0.6992 MB / 437.2 MB, free: 432 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001872/0.2893, allocations: 59.89 kB / 437.2 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.2893, allocations: 0 / 437.2 MB, free: 372 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.327e-05/0.2893, allocations: 8 kB / 437.2 MB, free: 364 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007116/0.29, allocations: 0.7225 MB / 437.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001499/0.2915, allocations: 1.417 MB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003024/0.2918, allocations: 0.6924 MB / 440.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 2.955e-05/0.2919, allocations: 4 kB / 440.1 MB, free: 13.35 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.247e-05/0.2919, allocations: 23.42 kB / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of SimCode: time 2.91e-07/0.2919, allocations: 0 / 440.1 MB, free: 13.32 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02876/0.3207, allocations: 2.108 MB / 442.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.21, allocations: 19.88 kB / 442.2 MB, free: 11.33 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.674994385102764]