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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001574/0.001574, allocations: 109 kB / 17.06 MB, free: 5.969 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.001598/0.001598, allocations: 196.1 kB / 18 MB, free: 5.051 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.5/1.5, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001639/0.001639, allocations: 59.89 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2844/0.2861, allocations: 49.43 MB / 400.2 MB, free: 8.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00298/0.2891, allocations: 1.581 MB / 401.8 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008126/0.29, allocations: 443.9 kB / 402.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.677e-05/0.29, allocations: 0 / 402.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 3.585e-05/0.2901, allocations: 7.875 kB / 402.3 MB, free: 6.777 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.2903, allocations: 23.86 kB / 402.3 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000209/0.2905, allocations: 42.62 kB / 402.3 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001172/0.2906, allocations: 63.78 kB / 402.4 MB, free: 6.652 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001044/0.2907, allocations: 11.98 kB / 402.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001182/0.2909, allocations: 43.77 kB / 402.5 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.532e-05/0.2909, allocations: 31.92 kB / 402.5 MB, free: 6.566 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.24e-05/0.291, allocations: 4 kB / 402.5 MB, free: 6.562 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.553e-05/0.291, allocations: 7.938 kB / 402.5 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 3.323e-05/0.291, allocations: 15.97 kB / 402.5 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.944e-05/0.2911, allocations: 27.8 kB / 402.5 MB, free: 6.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001515/0.2912, allocations: 62.73 kB / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.2912, allocations: 0 / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.2913, allocations: 0 / 402.6 MB, free: 6.453 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.2913, allocations: 0 / 402.6 MB, free: 6.453 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.00058/0.2918, allocations: 383.2 kB / 403 MB, free: 6.031 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.2919, allocations: 8.031 kB / 403 MB, free: 6.023 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.797e-05/0.2919, allocations: 38.75 kB / 403 MB, free: 5.977 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.749e-05/0.292, allocations: 12.89 kB / 403 MB, free: 5.965 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002519/0.2922, allocations: 192.2 kB / 403.2 MB, free: 5.738 MB / 318.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.0001086/0.2924, allocations: 38.25 kB / 403.3 MB, free: 5.695 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.172e-05/0.2924, allocations: 4.375 kB / 403.3 MB, free: 5.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003834/0.2928, allocations: 164.9 kB / 403.4 MB, free: 5.512 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.2928, allocations: 7.875 kB / 403.4 MB, free: 5.504 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.2928, allocations: 7.984 kB / 403.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.228e-06/0.2928, allocations: 0 / 403.4 MB, free: 5.496 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001261/0.2929, allocations: 27.98 kB / 403.5 MB, free: 5.469 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002019/0.2932, allocations: 190.5 kB / 403.6 MB, free: 5.23 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003054/0.2935, allocations: 166.4 kB / 403.8 MB, free: 5.031 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.2936, allocations: 37.7 kB / 403.8 MB, free: 4.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.668e-05/0.2936, allocations: 11.92 kB / 403.9 MB, free: 4.977 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.787e-05/0.2937, allocations: 34.56 kB / 403.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.353e-06/0.2937, allocations: 0 / 403.9 MB, free: 4.934 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.000361/0.294, allocations: 113.5 kB / 404 MB, free: 4.816 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.671e-05/0.2941, allocations: 93.03 kB / 404.1 MB, free: 4.707 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.2942, allocations: 125.8 kB / 404.2 MB, free: 4.574 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.049e-05/0.2943, allocations: 29.7 kB / 404.2 MB, free: 4.539 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.212e-05/0.2943, allocations: 92.27 kB / 404.3 MB, free: 4.445 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.047e-05/0.2944, allocations: 3.953 kB / 404.3 MB, free: 4.441 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.644e-05/0.2944, allocations: 25.7 kB / 404.4 MB, free: 4.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.2946, allocations: 314.8 kB / 404.7 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.537e-05/0.2946, allocations: 15.98 kB / 404.7 MB, free: 4.078 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.344e-05/0.2947, allocations: 62 kB / 404.7 MB, free: 3.996 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001397/0.2949, allocations: 81.88 kB / 404.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.024e-06/0.2949, allocations: 0 / 404.8 MB, free: 3.895 MB / 318.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001905/0.2951, allocations: 105.4 kB / 404.9 MB, free: 3.785 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.2951, allocations: 4 kB / 404.9 MB, free: 3.781 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.2951, allocations: 4 kB / 404.9 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.446e-05/0.2951, allocations: 0 / 404.9 MB, free: 3.777 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.739e-05/0.2952, allocations: 24.14 kB / 405 MB, free: 3.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.578e-06/0.2952, allocations: 7.984 kB / 405 MB, free: 3.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.578e-05/0.2953, allocations: 8 kB / 405 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.646e-06/0.2953, allocations: 0 / 405 MB, free: 3.738 MB / 318.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.715e-05/0.2954, allocations: 121.8 kB / 405.1 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001338/0.2956, allocations: 77.77 kB / 405.2 MB, free: 3.527 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.712e-05/0.2956, allocations: 12.36 kB / 405.2 MB, free: 3.516 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.2956, allocations: 7.984 kB / 405.2 MB, free: 3.508 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.6e-06/0.2956, allocations: 4.062 kB / 405.2 MB, free: 3.504 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.036e-06/0.2956, allocations: 4 kB / 405.2 MB, free: 3.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001505/0.2958, allocations: 173.6 kB / 405.4 MB, free: 3.281 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.11e-06/0.2958, allocations: 7.938 kB / 405.4 MB, free: 3.273 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.405e-05/0.2959, allocations: 11.98 kB / 405.4 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.2959, allocations: 0 / 405.4 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.2959, allocations: 4 kB / 405.4 MB, free: 3.258 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.2959, allocations: 4 kB / 405.4 MB, free: 3.254 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.426e-06/0.2959, allocations: 3.984 kB / 405.4 MB, free: 3.25 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002407/0.2962, allocations: 118.1 kB / 405.5 MB, free: 3.113 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.514e-05/0.2962, allocations: 96.98 kB / 405.6 MB, free: 3 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.036e-05/0.2963, allocations: 3.938 kB / 405.6 MB, free: 2.996 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.159e-05/0.2964, allocations: 11.98 kB / 405.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.309e-05/0.2964, allocations: 0 / 405.6 MB, free: 2.984 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.188e-05/0.2964, allocations: 4 kB / 405.6 MB, free: 2.98 MB / 318.1 MB Notification: Performance of sorting global known variables: time 6.513e-05/0.2965, allocations: 98.64 kB / 405.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2965, allocations: 0 / 405.7 MB, free: 2.887 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002062/0.2967, allocations: 16 kB / 405.7 MB, free: 2.871 MB / 318.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.0006894/0.2974, allocations: 0.7063 MB / 406.5 MB, free: 2.137 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002057/0.2976, allocations: 59.97 kB / 406.5 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2976, allocations: 0 / 406.5 MB, free: 2.078 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.171e-05/0.2977, allocations: 8 kB / 406.5 MB, free: 2.07 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008082/0.2985, allocations: 0.7219 MB / 407.2 MB, free: 1.324 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.3001, allocations: 1.394 MB / 408.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004034/0.3005, allocations: 0.6924 MB / 409.3 MB, free: 15.09 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.148e-05/0.3006, allocations: 8 kB / 409.3 MB, free: 15.08 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.513e-05/0.3006, allocations: 23.42 kB / 409.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of SimCode: time 2.415e-06/0.3006, allocations: 0 / 409.4 MB, free: 15.05 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02146/0.3221, allocations: 1.935 MB / 411.3 MB, free: 13.23 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.904/8.226, allocations: 4.25 kB / 411.3 MB, free: 13.23 MB / 334.1 MB (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 --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) 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) Reference file matches