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.0013/0.001304, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001358/0.001358, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.541/1.541, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 63.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3381/0.34, allocations: 50.55 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003163/0.3432, allocations: 1.596 MB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.3443, allocations: 0.5065 MB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.369e-05/0.3444, allocations: 7.938 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.902e-05/0.3444, allocations: 3.938 kB / 410.9 MB, free: 15.37 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001801/0.3446, allocations: 7.875 kB / 411 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003072/0.3449, allocations: 51.88 kB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.3451, allocations: 63.84 kB / 411.1 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.3452, allocations: 19.97 kB / 411.1 MB, free: 15.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001747/0.3454, allocations: 39.8 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.016e-05/0.3455, allocations: 35.83 kB / 411.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.25e-05/0.3455, allocations: 4 kB / 411.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.446e-05/0.3456, allocations: 12 kB / 411.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.132e-05/0.3456, allocations: 15.92 kB / 411.2 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.788e-05/0.3457, allocations: 23.86 kB / 411.2 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001979/0.3459, allocations: 66.67 kB / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.3459, allocations: 0 / 411.3 MB, free: 15.04 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.3459, allocations: 4 kB / 411.3 MB, free: 15.03 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.3459, allocations: 0 / 411.3 MB, free: 15.03 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.0007086/0.3467, allocations: 383.2 kB / 411.7 MB, free: 14.61 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.789e-05/0.3467, allocations: 8.031 kB / 411.7 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.671e-05/0.3468, allocations: 38.69 kB / 411.7 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002669/0.3471, allocations: 24.88 kB / 411.7 MB, free: 14.53 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003873/0.3475, allocations: 192.2 kB / 411.9 MB, free: 14.3 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.0001579/0.3476, allocations: 34.25 kB / 412 MB, free: 14.26 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.846e-05/0.3477, allocations: 12.38 kB / 412 MB, free: 14.25 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004751/0.3481, allocations: 172.7 kB / 412.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3482, allocations: 0 / 412.1 MB, free: 14.06 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.551e-05/0.3482, allocations: 8 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.673e-06/0.3482, allocations: 0 / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000155/0.3484, allocations: 35.97 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003199/0.3487, allocations: 186.5 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004083/0.3491, allocations: 166.4 kB / 412.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001143/0.3492, allocations: 37.7 kB / 412.6 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.046e-05/0.3493, allocations: 11.94 kB / 412.6 MB, free: 13.53 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.944e-05/0.3493, allocations: 34.56 kB / 412.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 5.19e-06/0.3494, allocations: 0 / 412.6 MB, free: 13.49 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004054/0.3498, allocations: 113.5 kB / 412.7 MB, free: 13.37 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000125/0.3499, allocations: 89.05 kB / 412.8 MB, free: 13.27 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001452/0.3501, allocations: 133.1 kB / 412.9 MB, free: 13.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.046e-05/0.3501, allocations: 25.7 kB / 413 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.143e-05/0.3502, allocations: 88.14 kB / 413 MB, free: 13.01 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.89e-05/0.3502, allocations: 11.94 kB / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.857e-05/0.3502, allocations: 21.72 kB / 413.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001511/0.3504, allocations: 322.8 kB / 413.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.328e-05/0.3505, allocations: 19.98 kB / 413.4 MB, free: 12.62 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.133e-05/0.3506, allocations: 58 kB / 413.5 MB, free: 12.55 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001405/0.3507, allocations: 81.88 kB / 413.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.3507, allocations: 0 / 413.5 MB, free: 12.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0002082/0.3509, allocations: 101.4 kB / 413.6 MB, free: 12.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.351, allocations: 10.81 kB / 413.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.913e-06/0.351, allocations: 4.219 kB / 413.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.049e-05/0.351, allocations: 4 kB / 413.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.592e-05/0.3511, allocations: 19.92 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.494e-06/0.3511, allocations: 0 / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.488e-05/0.3512, allocations: 7.938 kB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.144e-05/0.3512, allocations: 4 kB / 413.7 MB, free: 12.29 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.0001148/0.3513, allocations: 122 kB / 413.8 MB, free: 12.16 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001411/0.3515, allocations: 81.45 kB / 413.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.977e-05/0.3515, allocations: 12.38 kB / 413.9 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.855e-06/0.3515, allocations: 4 kB / 413.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.356e-06/0.3516, allocations: 4 kB / 413.9 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.42e-06/0.3516, allocations: 3.984 kB / 413.9 MB, free: 12.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001665/0.3517, allocations: 169.6 kB / 414.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.657e-06/0.3517, allocations: 4.25 kB / 414.1 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.823e-05/0.3518, allocations: 15.98 kB / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.3518, allocations: 4 kB / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.3519, allocations: 0 / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.3519, allocations: 0 / 414.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.3519, allocations: 3.984 kB / 414.1 MB, free: 11.81 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.3521, allocations: 137.8 kB / 414.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.252e-05/0.3522, allocations: 92.98 kB / 414.3 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.3523, allocations: 8 kB / 414.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.389e-05/0.3523, allocations: 4 kB / 414.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.005e-05/0.3524, allocations: 0 / 414.3 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.512e-05/0.3524, allocations: 11.98 kB / 414.4 MB, free: 11.52 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.397e-05/0.3525, allocations: 95.27 kB / 414.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3525, allocations: 4 kB / 414.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002124/0.3527, allocations: 12 kB / 414.5 MB, free: 11.41 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.0007774/0.3535, allocations: 0.703 MB / 415.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002061/0.3537, allocations: 51.91 kB / 415.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.655e-06/0.3537, allocations: 0 / 415.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.951e-05/0.3538, allocations: 8 kB / 415.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000825/0.3546, allocations: 0.7225 MB / 416 MB, free: 9.875 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00183/0.3564, allocations: 1.407 MB / 417.4 MB, free: 8.34 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000366/0.3568, allocations: 0.6963 MB / 418.1 MB, free: 7.617 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.786e-05/0.3569, allocations: 4.094 kB / 418.1 MB, free: 7.613 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.142e-05/0.3569, allocations: 31.36 kB / 418.1 MB, free: 7.582 MB / 334.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3569, allocations: 0 / 418.1 MB, free: 7.582 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02466/0.3816, allocations: 1.949 MB / 420 MB, free: 5.746 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.858/8.24, allocations: 8 kB / 420 MB, free: 5.738 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.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) Reference file matches