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.001392/0.001392, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001634/0.001634, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.35/1.35, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 60.94 kB / 307.1 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1017, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002916/0.1046, allocations: 1.593 MB / 359.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008312/0.1055, allocations: 0.5142 MB / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.171e-05/0.1055, allocations: 0 / 359.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 2.965e-05/0.1056, allocations: 3.938 kB / 359.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001294/0.1057, allocations: 15.81 kB / 359.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00021/0.1059, allocations: 43.94 kB / 359.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001051/0.1061, allocations: 71.77 kB / 359.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.09e-05/0.1062, allocations: 23.97 kB / 359.9 MB, free: 11.72 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000127/0.1063, allocations: 35.86 kB / 359.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.384e-05/0.1064, allocations: 35.83 kB / 359.9 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.777e-05/0.1064, allocations: 8 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.024e-05/0.1064, allocations: 4 kB / 359.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.327e-05/0.1065, allocations: 15.92 kB / 359.9 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 4.315e-05/0.1065, allocations: 31.86 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001253/0.1067, allocations: 63.78 kB / 360 MB, free: 11.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.1067, allocations: 7.875 kB / 360 MB, free: 11.52 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.1067, allocations: 7.938 kB / 360.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.1067, allocations: 0 / 360.1 MB, free: 11.51 MB / 302.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.0004722/0.1072, allocations: 383.4 kB / 360.4 MB, free: 11.09 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.871e-05/0.1072, allocations: 8.031 kB / 360.4 MB, free: 11.08 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.899e-05/0.1073, allocations: 38.73 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000214/0.1075, allocations: 20.83 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001892/0.1077, allocations: 184.3 kB / 360.7 MB, free: 10.8 MB / 302.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.0001321/0.1078, allocations: 34.27 kB / 360.7 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.489e-05/0.1078, allocations: 8.375 kB / 360.7 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003759/0.1082, allocations: 168.8 kB / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.1082, allocations: 0 / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.274e-05/0.1083, allocations: 0 / 360.9 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.1083, allocations: 4 kB / 360.9 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001262/0.1084, allocations: 35.97 kB / 360.9 MB, free: 10.53 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001779/0.1086, allocations: 190.4 kB / 361.1 MB, free: 10.29 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002742/0.1089, allocations: 166.4 kB / 361.3 MB, free: 10.09 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.6e-05/0.109, allocations: 45.69 kB / 361.3 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.108e-05/0.109, allocations: 7.938 kB / 361.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.07e-05/0.109, allocations: 38.5 kB / 361.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.173e-06/0.109, allocations: 0 / 361.4 MB, free: 9.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.000306/0.1093, allocations: 117.5 kB / 361.5 MB, free: 9.863 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.1094, allocations: 85.11 kB / 361.6 MB, free: 9.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.072e-05/0.1095, allocations: 122 kB / 361.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.703e-05/0.1095, allocations: 29.7 kB / 361.7 MB, free: 9.598 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.746e-05/0.1096, allocations: 96.06 kB / 361.8 MB, free: 9.5 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.903e-05/0.1096, allocations: 7.891 kB / 361.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.752e-05/0.1096, allocations: 29.7 kB / 361.8 MB, free: 9.457 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001028/0.1098, allocations: 314.8 kB / 362.1 MB, free: 9.141 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.828e-05/0.1098, allocations: 15.98 kB / 362.2 MB, free: 9.125 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.622e-05/0.1099, allocations: 65.94 kB / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001195/0.11, allocations: 77.88 kB / 362.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.11, allocations: 0 / 362.3 MB, free: 8.941 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001648/0.1102, allocations: 105.4 kB / 362.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.1102, allocations: 4.219 kB / 362.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.771e-06/0.1102, allocations: 8 kB / 362.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.1102, allocations: 0 / 362.4 MB, free: 8.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.433e-05/0.1103, allocations: 15.94 kB / 362.4 MB, free: 8.805 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.1103, allocations: 7.984 kB / 362.4 MB, free: 8.797 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.122e-05/0.1104, allocations: 8 kB / 362.4 MB, free: 8.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.246e-06/0.1104, allocations: 4 kB / 362.5 MB, free: 8.785 MB / 302.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 8.495e-05/0.1105, allocations: 117.8 kB / 362.6 MB, free: 8.66 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001206/0.1106, allocations: 77.47 kB / 362.6 MB, free: 8.578 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.516e-05/0.1107, allocations: 20.36 kB / 362.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.1107, allocations: 0 / 362.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.1107, allocations: 0 / 362.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.1107, allocations: 4 kB / 362.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001068/0.1108, allocations: 169.6 kB / 362.8 MB, free: 8.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.214e-06/0.1108, allocations: 3.938 kB / 362.8 MB, free: 8.336 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.039e-05/0.1109, allocations: 15.98 kB / 362.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.1109, allocations: 0 / 362.9 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.1109, allocations: 4 kB / 362.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1109, allocations: 320 / 362.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1109, allocations: 0 / 362.9 MB, free: 8.316 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002009/0.1111, allocations: 129.8 kB / 363 MB, free: 8.168 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.454e-05/0.1112, allocations: 104.8 kB / 363.1 MB, free: 8.047 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.241e-05/0.1112, allocations: 4 kB / 363.1 MB, free: 8.043 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.328e-05/0.1113, allocations: 4 kB / 363.1 MB, free: 8.039 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.416e-05/0.1113, allocations: 7.984 kB / 363.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.424e-06/0.1113, allocations: 0 / 363.1 MB, free: 8.031 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.791e-05/0.1114, allocations: 101.7 kB / 363.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1114, allocations: 0 / 363.2 MB, free: 7.934 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002001/0.1116, allocations: 16 kB / 363.2 MB, free: 7.918 MB / 302.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.0005259/0.1121, allocations: 0.6953 MB / 363.9 MB, free: 7.188 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001868/0.1123, allocations: 59.91 kB / 364 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1123, allocations: 0 / 364 MB, free: 7.129 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.753e-05/0.1124, allocations: 7.984 kB / 364 MB, free: 7.121 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005779/0.113, allocations: 0.7224 MB / 364.7 MB, free: 6.375 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.1142, allocations: 1.411 MB / 366.1 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002349/0.1145, allocations: 0.6934 MB / 366.8 MB, free: 4.117 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.017e-05/0.1145, allocations: 7.984 kB / 366.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.306e-05/0.1146, allocations: 19.44 kB / 366.8 MB, free: 4.09 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1146, allocations: 0 / 366.8 MB, free: 4.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4455/0.5601, allocations: 1.923 MB / 368.8 MB, free: 2.258 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.067/8.627, allocations: 6.391 kB / 368.8 MB, free: 2.258 MB / 302.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