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.0009044/0.0009044, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008063/0.0008063, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.879/0.879, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 6.963e-06/6.963e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.45e-05/3.146e-05, allocations: 2.281 kB / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002402/0.002434, allocations: 1.595 MB / 326.1 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006762/0.00311, allocations: 494.7 kB / 326.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.088e-05/0.003181, allocations: 0 / 326.6 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.026e-05/0.003211, allocations: 7.875 kB / 326.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000174/0.003385, allocations: 19.8 kB / 326.6 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002293/0.003614, allocations: 55.7 kB / 326.7 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001013/0.003716, allocations: 79.75 kB / 326.8 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.196e-05/0.003808, allocations: 8 kB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.003965, allocations: 43.89 kB / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.766e-05/0.004012, allocations: 27.91 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.982e-05/0.004032, allocations: 4 kB / 326.8 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.661e-05/0.004069, allocations: 8 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.166e-05/0.00409, allocations: 19.97 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.088e-05/0.004121, allocations: 15.92 kB / 326.9 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.00426, allocations: 71.77 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.004263, allocations: 0 / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.363e-06/0.004264, allocations: 4 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.004268, allocations: 0 / 327 MB, free: 13.43 MB / 298.7 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.0004049/0.004673, allocations: 306 kB / 327.3 MB, free: 13.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.146e-05/0.004715, allocations: 11.98 kB / 327.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.56e-05/0.00475, allocations: 46.72 kB / 327.3 MB, free: 13.04 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000149/0.004899, allocations: 20.88 kB / 327.3 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002122/0.005111, allocations: 130.5 kB / 327.5 MB, free: 12.86 MB / 298.7 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.000101/0.005212, allocations: 34.25 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.318e-05/0.005226, allocations: 8.375 kB / 327.5 MB, free: 12.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000277/0.005503, allocations: 173.3 kB / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.822e-06/0.005509, allocations: 192 / 327.7 MB, free: 12.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.748e-06/0.005519, allocations: 3.938 kB / 327.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.005524, allocations: 4 kB / 327.7 MB, free: 12.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.638e-05/0.005601, allocations: 31.97 kB / 327.7 MB, free: 12.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001241/0.005725, allocations: 145.6 kB / 327.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000204/0.005929, allocations: 89.25 kB / 327.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.574e-05/0.005985, allocations: 41.7 kB / 328 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.006003, allocations: 4 kB / 328 MB, free: 12.25 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.739e-05/0.006021, allocations: 34.55 kB / 328 MB, free: 12.2 MB / 298.7 MB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.006022, allocations: 3.938 kB / 328 MB, free: 12.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=7): time 0.000222/0.006244, allocations: 117.5 kB / 328.1 MB, free: 12.08 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.006296, allocations: 89.05 kB / 328.2 MB, free: 11.97 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.801e-05/0.006364, allocations: 124.6 kB / 328.4 MB, free: 11.84 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.202e-05/0.006376, allocations: 37.83 kB / 328.4 MB, free: 11.8 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.93e-05/0.006406, allocations: 84.14 kB / 328.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.114e-05/0.006427, allocations: 7.953 kB / 328.5 MB, free: 11.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.084e-05/0.006457, allocations: 21.7 kB / 328.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.741e-05/0.006535, allocations: 314.8 kB / 328.8 MB, free: 11.36 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.894e-05/0.006564, allocations: 11.98 kB / 328.8 MB, free: 11.35 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.953e-05/0.006593, allocations: 30.56 kB / 328.8 MB, free: 11.31 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.126e-05/0.006655, allocations: 50.5 kB / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.006657, allocations: 0 / 328.9 MB, free: 11.25 MB / 298.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.273e-05/0.006739, allocations: 73.58 kB / 329 MB, free: 11.18 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.006752, allocations: 4 kB / 329 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.006758, allocations: 3.938 kB / 329 MB, free: 11.17 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.31e-05/0.006771, allocations: 4 kB / 329 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.137e-05/0.006822, allocations: 7.984 kB / 329 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.006828, allocations: 4 kB / 329 MB, free: 11.15 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.079e-05/0.006849, allocations: 8.031 kB / 329 MB, free: 11.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.613e-06/0.006856, allocations: 4 kB / 329 MB, free: 11.14 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (5): * Single equations (assignments): 5 * 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.364e-05/0.006919, allocations: 121.7 kB / 329.1 MB, free: 11.01 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.738e-05/0.006997, allocations: 81.56 kB / 329.2 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.486e-05/0.007032, allocations: 12.38 kB / 329.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.007034, allocations: 0 / 329.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.007038, allocations: 0 / 329.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.00704, allocations: 0 / 329.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.848e-05/0.007119, allocations: 144.7 kB / 329.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.00712, allocations: 0 / 329.4 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.822e-05/0.007158, allocations: 15.98 kB / 329.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.00716, allocations: 3.984 kB / 329.4 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.061e-05/0.007171, allocations: 12.38 kB / 329.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.007175, allocations: 3.984 kB / 329.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.007176, allocations: 0 / 329.4 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001242/0.0073, allocations: 125.8 kB / 329.5 MB, free: 10.55 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.892e-05/0.007329, allocations: 11.94 kB / 329.5 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.871e-05/0.007347, allocations: 11.94 kB / 329.5 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.799e-05/0.007375, allocations: 4 kB / 329.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.488e-05/0.0074, allocations: 0 / 329.5 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.276e-06/0.007409, allocations: 11.98 kB / 329.6 MB, free: 10.51 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.62e-05/0.007445, allocations: 99.27 kB / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007445, allocations: 0 / 329.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001302/0.007575, allocations: 8 kB / 329.7 MB, free: 10.41 MB / 298.7 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.0003947/0.00797, allocations: 0.6907 MB / 330.4 MB, free: 9.684 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001097/0.008079, allocations: 47.84 kB / 330.4 MB, free: 9.637 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.432e-06/0.008081, allocations: 256 / 330.4 MB, free: 9.637 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 1.901e-05/0.0081, allocations: 12 kB / 330.4 MB, free: 9.625 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.008533, allocations: 0.7142 MB / 331.1 MB, free: 8.887 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008571/0.00939, allocations: 1.328 MB / 332.5 MB, free: 7.457 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002798/0.00967, allocations: 79.45 kB / 332.5 MB, free: 7.359 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.122e-05/0.009701, allocations: 3.984 kB / 332.5 MB, free: 7.355 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.45e-05/0.009746, allocations: 24.44 kB / 332.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of SimCode: time 4.71e-07/0.009746, allocations: 0 / 332.6 MB, free: 7.332 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01399/0.02373, allocations: 2.629 MB / 335.2 MB, free: 4.809 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.56/6.584, allocations: 2.5 kB / 335.2 MB, free: 4.809 MB / 298.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins/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: 8.255011181347072]