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.001723/0.001723, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002247/0.002248, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.566/1.566, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 67.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4126/0.4139, allocations: 50.54 MB / 408.8 MB, free: 1.547 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.004662/0.4187, allocations: 1.6 MB / 410.4 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001468/0.4202, allocations: 0.4987 MB / 410.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001507/0.4204, allocations: 3.938 kB / 410.9 MB, free: 15.44 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 5.11e-05/0.4205, allocations: 7.875 kB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002848/0.4208, allocations: 19.8 kB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004169/0.4212, allocations: 51.88 kB / 410.9 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001815/0.4214, allocations: 67.83 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001385/0.4215, allocations: 12 kB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000255/0.4218, allocations: 39.84 kB / 411.1 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001001/0.4219, allocations: 31.78 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.597e-05/0.4219, allocations: 8 kB / 411.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.915e-05/0.422, allocations: 11.98 kB / 411.1 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.083e-05/0.4221, allocations: 11.94 kB / 411.1 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.07e-05/0.4222, allocations: 31.84 kB / 411.2 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002648/0.4224, allocations: 67.72 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.468e-06/0.4224, allocations: 4 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.344e-06/0.4225, allocations: 0 / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.4225, allocations: 4 kB / 411.2 MB, free: 15.07 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.0007504/0.4232, allocations: 376.9 kB / 411.6 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.578e-05/0.4233, allocations: 12.03 kB / 411.6 MB, free: 14.65 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.516e-05/0.4234, allocations: 38.73 kB / 411.6 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002779/0.4236, allocations: 20.83 kB / 411.7 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.424, allocations: 196.1 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.0001223/0.4241, allocations: 34.27 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.488e-05/0.4242, allocations: 8.375 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004318/0.4246, allocations: 160.9 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.4246, allocations: 0 / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.582e-05/0.4246, allocations: 4 kB / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.431e-06/0.4247, allocations: 0 / 412.1 MB, free: 14.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001313/0.4248, allocations: 39.91 kB / 412.1 MB, free: 14.08 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002098/0.425, allocations: 178.5 kB / 412.3 MB, free: 13.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003031/0.4253, allocations: 170.4 kB / 412.4 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.528e-05/0.4254, allocations: 41.7 kB / 412.5 MB, free: 13.61 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.4255, allocations: 3.938 kB / 412.5 MB, free: 13.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.4255, allocations: 38.56 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 2.775e-06/0.4255, allocations: 3.984 kB / 412.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003538/0.4259, allocations: 117.4 kB / 412.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.243e-05/0.4259, allocations: 85.23 kB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001168/0.4261, allocations: 133.8 kB / 412.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.682e-05/0.4261, allocations: 25.7 kB / 412.9 MB, free: 13.16 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.763e-05/0.4261, allocations: 92.12 kB / 413 MB, free: 13.06 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.308e-05/0.4262, allocations: 7.906 kB / 413 MB, free: 13.05 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-05/0.4262, allocations: 21.7 kB / 413 MB, free: 13.03 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001164/0.4264, allocations: 322.8 kB / 413.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.447e-05/0.4264, allocations: 15.98 kB / 413.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.109e-05/0.4265, allocations: 61.94 kB / 413.4 MB, free: 12.61 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.4266, allocations: 77.94 kB / 413.5 MB, free: 12.51 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.4267, allocations: 4.25 kB / 413.5 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.00018/0.4268, allocations: 109.3 kB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.4269, allocations: 11.34 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.4269, allocations: 4 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.4269, allocations: 4 kB / 413.6 MB, free: 12.38 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.555e-05/0.427, allocations: 12 kB / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.046e-05/0.427, allocations: 7.984 kB / 413.6 MB, free: 12.36 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.362e-05/0.4271, allocations: 7.844 kB / 413.6 MB, free: 12.35 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.4271, allocations: 4 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.058e-05/0.4272, allocations: 129.7 kB / 413.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001185/0.4273, allocations: 69.62 kB / 413.8 MB, free: 12.13 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.067e-05/0.4274, allocations: 20.36 kB / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.4274, allocations: 0 / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.4274, allocations: 0 / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.4274, allocations: 0 / 413.8 MB, free: 12.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001347/0.4275, allocations: 173.5 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.4275, allocations: 7.938 kB / 414 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.204e-05/0.4276, allocations: 15.92 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.335e-06/0.4276, allocations: 0 / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.105e-05/0.4276, allocations: 0 / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.328e-06/0.4277, allocations: 4 kB / 414 MB, free: 11.87 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.4277, allocations: 8.172 kB / 414 MB, free: 11.86 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002138/0.4279, allocations: 125.8 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.561e-05/0.428, allocations: 92.97 kB / 414.3 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.471e-05/0.428, allocations: 4 kB / 414.3 MB, free: 11.6 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.871e-05/0.4281, allocations: 7.984 kB / 414.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.227e-05/0.4281, allocations: 0 / 414.3 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.4281, allocations: 12 kB / 414.3 MB, free: 11.58 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.443e-05/0.4282, allocations: 98.78 kB / 414.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4282, allocations: 0 / 414.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000215/0.4284, allocations: 12 kB / 414.4 MB, free: 11.48 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.0006056/0.429, allocations: 0.6991 MB / 415.1 MB, free: 10.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002052/0.4292, allocations: 59.91 kB / 415.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4293, allocations: 0 / 415.1 MB, free: 10.69 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.764e-05/0.4293, allocations: 15.98 kB / 415.2 MB, free: 10.67 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006577/0.43, allocations: 0.7247 MB / 415.9 MB, free: 9.926 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001411/0.4314, allocations: 1.403 MB / 417.3 MB, free: 8.395 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003045/0.4317, allocations: 0.7001 MB / 418 MB, free: 7.668 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 4.437e-05/0.4318, allocations: 4 kB / 418 MB, free: 7.664 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.838e-05/0.4318, allocations: 23.42 kB / 418 MB, free: 7.641 MB / 334.1 MB Notification: Performance of SimCode: time 3.91e-07/0.4318, allocations: 0 / 418 MB, free: 7.641 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02053/0.4524, allocations: 1.985 MB / 420 MB, free: 5.766 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.435/8.887, 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