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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001292/0.001292, allocations: 117.7 kB / 17.78 MB, free: 5.242 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001347/0.001348, allocations: 204.6 kB / 18.73 MB, free: 4.301 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.513/1.513, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001313/0.001313, allocations: 59.91 kB / 358.2 MB, free: 13.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3283/0.3296, allocations: 50.53 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003384/0.333, allocations: 1.593 MB / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001122/0.3342, allocations: 0.5065 MB / 410.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001086/0.3343, allocations: 7.875 kB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 4.276e-05/0.3344, allocations: 3.938 kB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000189/0.3346, allocations: 7.875 kB / 410.9 MB, free: 15.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003015/0.3349, allocations: 59.88 kB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001456/0.335, allocations: 59.84 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.3352, allocations: 15.97 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001965/0.3354, allocations: 39.8 kB / 411.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.01e-05/0.3354, allocations: 35.83 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.966e-05/0.3355, allocations: 4 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.131e-05/0.3355, allocations: 8 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.259e-05/0.3356, allocations: 19.92 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.191e-05/0.3356, allocations: 27.86 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001623/0.3358, allocations: 71.72 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3358, allocations: 0 / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.3358, allocations: 0 / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.795e-06/0.3358, allocations: 0 / 411.2 MB, free: 15.08 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.0006023/0.3364, allocations: 380.9 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3365, allocations: 8.031 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.487e-05/0.3365, allocations: 42.75 kB / 411.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002583/0.3368, allocations: 32.7 kB / 411.7 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003125/0.3371, allocations: 192.2 kB / 411.9 MB, free: 14.35 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.0001393/0.3373, allocations: 38.25 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.3373, allocations: 8.375 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004199/0.3377, allocations: 168.8 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.3378, allocations: 0 / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.307e-05/0.3378, allocations: 0 / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.065e-06/0.3378, allocations: 3.984 kB / 412.1 MB, free: 14.11 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001311/0.3379, allocations: 35.97 kB / 412.1 MB, free: 14.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002229/0.3382, allocations: 178.5 kB / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.3385, allocations: 170.4 kB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.791e-05/0.3386, allocations: 41.7 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.3386, allocations: 3.938 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.209e-05/0.3386, allocations: 30.56 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.272e-06/0.3386, allocations: 0 / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003691/0.339, allocations: 121.5 kB / 412.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.146e-05/0.3391, allocations: 85.09 kB / 412.7 MB, free: 13.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001131/0.3392, allocations: 129.7 kB / 412.8 MB, free: 13.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.98e-05/0.3393, allocations: 29.7 kB / 412.9 MB, free: 13.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.845e-05/0.3393, allocations: 88.12 kB / 413 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.802e-05/0.3393, allocations: 11.91 kB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/0.3394, allocations: 17.84 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.3395, allocations: 330.8 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.65e-05/0.3396, allocations: 15.98 kB / 413.3 MB, free: 12.68 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.361e-05/0.3397, allocations: 57.98 kB / 413.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001381/0.3398, allocations: 77.88 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3398, allocations: 192 / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001966/0.34, allocations: 109.4 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/0.3401, allocations: 11.94 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.3401, allocations: 0 / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.718e-05/0.3401, allocations: 4 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.443e-05/0.3402, allocations: 19.92 kB / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.053e-06/0.3402, allocations: 0 / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.574e-05/0.3403, allocations: 15.83 kB / 413.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-06/0.3403, allocations: 4.219 kB / 413.6 MB, free: 12.34 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.493e-05/0.3404, allocations: 125.8 kB / 413.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.3405, allocations: 77.88 kB / 413.8 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.083e-05/0.3406, allocations: 12.36 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5e-06/0.3406, allocations: 4 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.3406, allocations: 0 / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.3406, allocations: 0 / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001372/0.3407, allocations: 177.5 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.497e-06/0.3408, allocations: 3.938 kB / 414 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.761e-05/0.3408, allocations: 19.98 kB / 414 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.3408, allocations: 0 / 414 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.121e-05/0.3409, allocations: 0 / 414 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3409, allocations: 0 / 414 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.3409, allocations: 4 kB / 414 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002227/0.3411, allocations: 133.7 kB / 414.2 MB, free: 11.7 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.734e-05/0.3412, allocations: 89.03 kB / 414.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.3412, allocations: 8 kB / 414.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.397e-05/0.3413, allocations: 4 kB / 414.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.068e-05/0.3413, allocations: 0 / 414.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.304e-05/0.3413, allocations: 7.984 kB / 414.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.647e-05/0.3414, allocations: 102.4 kB / 414.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3414, allocations: 0 / 414.4 MB, free: 11.48 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002101/0.3416, allocations: 8 kB / 414.4 MB, free: 11.47 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.0006065/0.3422, allocations: 0.699 MB / 415.1 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000198/0.3424, allocations: 55.91 kB / 415.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3425, allocations: 0.5 kB / 415.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.013e-05/0.3425, allocations: 8 kB / 415.1 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007354/0.3432, allocations: 0.7257 MB / 415.9 MB, free: 9.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.3447, allocations: 1.411 MB / 417.3 MB, free: 8.391 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003161/0.345, allocations: 0.6924 MB / 418 MB, free: 7.672 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.935e-05/0.3451, allocations: 7.984 kB / 418 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.191e-05/0.3451, allocations: 23.42 kB / 418 MB, free: 7.641 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3452, allocations: 0 / 418 MB, free: 7.641 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01947/0.3646, allocations: 1.988 MB / 420 MB, free: 5.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.808/8.172, allocations: 0 / 420 MB, free: 5.766 MB / 334.1 MB (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 --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) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches