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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001853/0.001853, allocations: 116.4 kB / 18.5 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002204/0.002204, allocations: 208.9 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.364/1.364, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001799/0.001799, allocations: 63.91 kB / 373.4 MB, free: 10.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0986/0.1004, allocations: 53.31 MB / 426.7 MB, free: 5.012 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.00288/0.1033, allocations: 1.607 MB / 428.3 MB, free: 3.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009127/0.1042, allocations: 0.5104 MB / 428.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.469e-05/0.1043, allocations: 0 / 428.8 MB, free: 2.883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 3.499e-05/0.1043, allocations: 7.922 kB / 428.8 MB, free: 2.875 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001822/0.1045, allocations: 23.8 kB / 428.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002425/0.1047, allocations: 43.94 kB / 428.9 MB, free: 2.809 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001379/0.1049, allocations: 75.72 kB / 428.9 MB, free: 2.734 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000102/0.105, allocations: 11.98 kB / 428.9 MB, free: 2.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001602/0.1051, allocations: 31.91 kB / 429 MB, free: 2.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.823e-05/0.1052, allocations: 39.78 kB / 429 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.829e-05/0.1052, allocations: 4 kB / 429 MB, free: 2.648 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.549e-05/0.1053, allocations: 8 kB / 429 MB, free: 2.641 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 2.675e-05/0.1053, allocations: 15.97 kB / 429 MB, free: 2.625 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 4.642e-05/0.1053, allocations: 31.8 kB / 429.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001622/0.1055, allocations: 67.66 kB / 429.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.1055, allocations: 0 / 429.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1055, allocations: 4 kB / 429.1 MB, free: 2.523 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.1055, allocations: 4 kB / 429.2 MB, free: 2.52 MB / 350.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.000564/0.1061, allocations: 383.1 kB / 429.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.1061, allocations: 8.031 kB / 429.5 MB, free: 2.09 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.56e-05/0.1062, allocations: 30.75 kB / 429.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002041/0.1064, allocations: 20.88 kB / 429.6 MB, free: 2.031 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.1066, allocations: 196.2 kB / 429.8 MB, free: 1.801 MB / 350.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.0001038/0.1067, allocations: 46.23 kB / 429.8 MB, free: 1.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.56e-05/0.1067, allocations: 4.375 kB / 429.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003725/0.1071, allocations: 172.7 kB / 430 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.1071, allocations: 0 / 430 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.1071, allocations: 0 / 430 MB, free: 1.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.669e-06/0.1071, allocations: 8 kB / 430 MB, free: 1.551 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001159/0.1072, allocations: 27.98 kB / 430 MB, free: 1.523 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002016/0.1074, allocations: 194.4 kB / 430.2 MB, free: 1.281 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002781/0.1077, allocations: 150.4 kB / 430.4 MB, free: 1.098 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.256e-05/0.1078, allocations: 45.69 kB / 430.4 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.842e-05/0.1078, allocations: 7.875 kB / 430.4 MB, free: 1.039 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.082e-05/0.1079, allocations: 38.56 kB / 430.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of pre-optimization done (n=7): time 1.893e-06/0.1079, allocations: 0 / 430.5 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003234/0.1082, allocations: 109.5 kB / 430.6 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.806e-05/0.1083, allocations: 85.23 kB / 430.6 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000107/0.1084, allocations: 131.8 kB / 430.8 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.786e-05/0.1084, allocations: 25.7 kB / 430.8 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.47e-05/0.1084, allocations: 84.14 kB / 430.9 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.53e-05/0.1085, allocations: 15.94 kB / 430.9 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.504e-05/0.1085, allocations: 17.72 kB / 430.9 MB, free: 496 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001323/0.1086, allocations: 322.8 kB / 431.2 MB, free: 164 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.944e-05/0.1087, allocations: 16 kB / 431.2 MB, free: 148 kB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.467e-05/0.1087, allocations: 61.92 kB / 431.3 MB, free: 64 kB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001432/0.1089, allocations: 81.88 kB / 431.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.1089, allocations: 0 / 431.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001747/0.1091, allocations: 109.6 kB / 431.5 MB, free: 15.85 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.357e-05/0.1091, allocations: 4 kB / 431.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.1091, allocations: 4 kB / 431.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.1091, allocations: 3.938 kB / 431.5 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.388e-05/0.1092, allocations: 16.42 kB / 431.5 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.022e-05/0.1092, allocations: 7.984 kB / 431.5 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.157e-05/0.1092, allocations: 15.88 kB / 431.5 MB, free: 15.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.1092, allocations: 0 / 431.5 MB, free: 15.8 MB / 366.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.278e-05/0.1093, allocations: 121.8 kB / 431.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001229/0.1095, allocations: 85.62 kB / 431.7 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.627e-05/0.1095, allocations: 12.38 kB / 431.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.1095, allocations: 0 / 431.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.1095, allocations: 0 / 431.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1095, allocations: 0 / 431.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.1096, allocations: 177.6 kB / 431.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.1096, allocations: 3.938 kB / 431.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.713e-05/0.1097, allocations: 8 kB / 431.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1097, allocations: 0 / 431.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.241e-05/0.1097, allocations: 3.984 kB / 431.9 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1097, allocations: 8 kB / 432 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.1097, allocations: 0 / 432 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002164/0.1099, allocations: 125.8 kB / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.668e-05/0.11, allocations: 89 kB / 432.2 MB, free: 15.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.558e-05/0.11, allocations: 11.97 kB / 432.2 MB, free: 15.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.28e-05/0.1101, allocations: 4 kB / 432.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.412e-05/0.1101, allocations: 4 kB / 432.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.947e-06/0.1101, allocations: 4 kB / 432.2 MB, free: 15.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.658e-05/0.1102, allocations: 101 kB / 432.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1102, allocations: 0 / 432.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0001941/0.1104, allocations: 8 kB / 432.3 MB, free: 14.94 MB / 366.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.0006157/0.111, allocations: 0.7068 MB / 433 MB, free: 14.2 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001763/0.1112, allocations: 55.91 kB / 433.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.1112, allocations: 0 / 433.1 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.707e-05/0.1112, allocations: 11.92 kB / 433.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006594/0.1119, allocations: 0.7255 MB / 433.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001386/0.1133, allocations: 1.404 MB / 435.2 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002916/0.1136, allocations: 0.7001 MB / 435.9 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.029e-05/0.1136, allocations: 3.984 kB / 435.9 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.635e-05/0.1136, allocations: 19.44 kB / 435.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1136, allocations: 0 / 435.9 MB, free: 11.11 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02144/0.1351, allocations: 1.978 MB / 437.9 MB, free: 9.234 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.632/7.767, allocations: 15.91 kB / 437.9 MB, free: 9.219 MB / 366.1 MB " [Timeout remaining time 652] (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 --stepSize=0.000199561 --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) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.266698827967048]