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.002046/0.002046, allocations: 103.9 kB / 16.92 MB, free: 5.766 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.002106/0.002106, allocations: 191.5 kB / 17.85 MB, free: 5.172 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.392/1.392, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001114/0.001115, allocations: 52.08 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1116/0.1127, allocations: 49.44 MB / 350.2 MB, free: 4.332 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003681/0.1165, allocations: 1.565 MB / 351.7 MB, free: 2.746 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009001/0.1174, allocations: 456.3 kB / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.055e-05/0.1175, allocations: 0 / 352.2 MB, free: 2.297 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.473e-05/0.1176, allocations: 3.938 kB / 352.2 MB, free: 2.293 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001763/0.1177, allocations: 19.86 kB / 352.2 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.118, allocations: 42 kB / 352.2 MB, free: 2.234 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001278/0.1181, allocations: 63.78 kB / 352.3 MB, free: 2.172 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001155/0.1183, allocations: 19.92 kB / 352.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001386/0.1184, allocations: 39.91 kB / 352.4 MB, free: 2.113 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.818e-05/0.1185, allocations: 31.84 kB / 352.4 MB, free: 2.082 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.318e-05/0.1185, allocations: 4 kB / 352.4 MB, free: 2.078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.863e-05/0.1185, allocations: 4 kB / 352.4 MB, free: 2.074 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.84e-05/0.1186, allocations: 15.92 kB / 352.4 MB, free: 2.059 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.701e-05/0.1186, allocations: 39.72 kB / 352.5 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001383/0.1188, allocations: 55.78 kB / 352.5 MB, free: 1.965 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.1188, allocations: 4 kB / 352.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.1188, allocations: 0 / 352.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.1188, allocations: 0 / 352.5 MB, free: 1.961 MB / 286.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.0007058/0.1195, allocations: 371.5 kB / 352.9 MB, free: 1.551 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.865e-05/0.1196, allocations: 12.02 kB / 352.9 MB, free: 1.539 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.122e-05/0.1196, allocations: 38.75 kB / 352.9 MB, free: 1.492 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.1197, allocations: 8.844 kB / 352.9 MB, free: 1.484 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000245/0.1199, allocations: 184.2 kB / 353.1 MB, free: 1.266 MB / 286.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.0001828/0.1201, allocations: 41.06 kB / 353.2 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.215e-05/0.1202, allocations: 8.375 kB / 353.2 MB, free: 1.215 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004051/0.1206, allocations: 172.8 kB / 353.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.1206, allocations: 0 / 353.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.423e-05/0.1206, allocations: 0 / 353.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.1206, allocations: 4 kB / 353.3 MB, free: 1.023 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001277/0.1208, allocations: 35.97 kB / 353.4 MB, free: 0.9883 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001965/0.121, allocations: 182.5 kB / 353.6 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003026/0.1213, allocations: 166.4 kB / 353.7 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.85e-05/0.1214, allocations: 49.64 kB / 353.8 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.1214, allocations: 7.938 kB / 353.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.239e-05/0.1214, allocations: 38.5 kB / 353.8 MB, free: 460 kB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 1.313e-06/0.1214, allocations: 0 / 353.8 MB, free: 460 kB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003431/0.1218, allocations: 113.5 kB / 353.9 MB, free: 340 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.978e-05/0.1219, allocations: 89.22 kB / 354 MB, free: 232 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.198e-05/0.122, allocations: 124.8 kB / 354.1 MB, free: 100 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.877e-05/0.122, allocations: 33.64 kB / 354.2 MB, free: 60 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.1e-05/0.1221, allocations: 84.14 kB / 354.2 MB, free: 15.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.601e-05/0.1221, allocations: 11.89 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.156e-05/0.1222, allocations: 21.72 kB / 354.3 MB, free: 15.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001112/0.1223, allocations: 318.8 kB / 354.6 MB, free: 15.61 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.319e-05/0.1223, allocations: 15.98 kB / 354.6 MB, free: 15.6 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.363e-05/0.1224, allocations: 65.98 kB / 354.7 MB, free: 15.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001259/0.1226, allocations: 81.88 kB / 354.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.1226, allocations: 0 / 354.7 MB, free: 15.41 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001829/0.1228, allocations: 101.4 kB / 354.8 MB, free: 15.3 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.516e-05/0.1228, allocations: 8.219 kB / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1228, allocations: 0 / 354.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.1228, allocations: 4 kB / 354.9 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.608e-05/0.1229, allocations: 19.92 kB / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.626e-06/0.1229, allocations: 4 kB / 354.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.74e-05/0.123, allocations: 11.84 kB / 354.9 MB, free: 15.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.123, allocations: 4 kB / 354.9 MB, free: 15.25 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 9.62e-05/0.1231, allocations: 121.8 kB / 355 MB, free: 15.12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001291/0.1232, allocations: 73.56 kB / 355.1 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.864e-05/0.1233, allocations: 16.36 kB / 355.1 MB, free: 15.03 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1233, allocations: 4 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.1233, allocations: 0 / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1233, allocations: 3.984 kB / 355.1 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001356/0.1235, allocations: 177.5 kB / 355.3 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.1235, allocations: 3.938 kB / 355.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.325e-05/0.1236, allocations: 15.98 kB / 355.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.1236, allocations: 0 / 355.3 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.264e-05/0.1236, allocations: 4.312 kB / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.1236, allocations: 0 / 355.3 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.53e-06/0.1236, allocations: 12 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002164/0.1238, allocations: 117.9 kB / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.276e-05/0.1239, allocations: 96.94 kB / 355.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.248e-05/0.1239, allocations: 192 / 355.5 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.908e-05/0.124, allocations: 8 kB / 355.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.301e-05/0.124, allocations: 3.938 kB / 355.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.459e-05/0.1241, allocations: 11.98 kB / 355.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.587e-05/0.1241, allocations: 95.27 kB / 355.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1241, allocations: 0 / 355.6 MB, free: 14.39 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002096/0.1244, allocations: 12 kB / 355.7 MB, free: 14.38 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.0006437/0.125, allocations: 0.699 MB / 356.4 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002071/0.1252, allocations: 55.91 kB / 356.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.774e-06/0.1252, allocations: 0 / 356.4 MB, free: 13.6 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4e-05/0.1253, allocations: 11.94 kB / 356.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006626/0.1259, allocations: 0.7185 MB / 357.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.1274, allocations: 1.399 MB / 358.5 MB, free: 11.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002734/0.1277, allocations: 0.6924 MB / 359.2 MB, free: 10.6 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.223e-05/0.1277, allocations: 7.984 kB / 359.2 MB, free: 10.59 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.135e-05/0.1278, allocations: 19.44 kB / 359.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1278, allocations: 0 / 359.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01707/0.1448, allocations: 1.902 MB / 361.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.848/7.992, allocations: 12.91 kB / 361.2 MB, free: 8.758 MB / 302.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