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.00193/0.001931, allocations: 104.7 kB / 16.62 MB, free: 6.809 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.001718/0.001718, allocations: 189.9 kB / 17.55 MB, free: 5.953 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.642/1.642, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001249/0.001248, allocations: 51.92 kB / 300.2 MB, free: 5.891 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1201/0.1213, allocations: 49.45 MB / 349.7 MB, free: 4.441 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.004173/0.1256, allocations: 1.639 MB / 351.3 MB, free: 2.785 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001028/0.1266, allocations: 446.9 kB / 351.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001206/0.1268, allocations: 0 / 351.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 5.008e-05/0.1269, allocations: 7.922 kB / 351.8 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002017/0.1271, allocations: 15.94 kB / 351.8 MB, free: 2.32 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002505/0.1273, allocations: 31.95 kB / 351.8 MB, free: 2.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001453/0.1275, allocations: 67.73 kB / 351.9 MB, free: 2.223 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001226/0.1276, allocations: 7.984 kB / 351.9 MB, free: 2.215 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001472/0.1278, allocations: 35.91 kB / 351.9 MB, free: 2.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.551e-05/0.1279, allocations: 31.84 kB / 352 MB, free: 2.148 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.396e-05/0.1279, allocations: 4 kB / 352 MB, free: 2.145 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.863e-05/0.1279, allocations: 4 kB / 352 MB, free: 2.141 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.991e-05/0.128, allocations: 23.91 kB / 352 MB, free: 2.117 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.192e-05/0.128, allocations: 27.81 kB / 352 MB, free: 2.09 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001532/0.1282, allocations: 59.78 kB / 352.1 MB, free: 2.031 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.705e-06/0.1282, allocations: 4 kB / 352.1 MB, free: 2.027 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1282, allocations: 0 / 352.1 MB, free: 2.027 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.323e-06/0.1282, allocations: 0 / 352.1 MB, free: 2.027 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.0008555/0.1291, allocations: 375.5 kB / 352.5 MB, free: 1.613 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.281e-05/0.1292, allocations: 12.03 kB / 352.5 MB, free: 1.602 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.707e-05/0.1292, allocations: 38.73 kB / 352.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.093e-05/0.1293, allocations: 12.78 kB / 352.5 MB, free: 1.543 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002484/0.1295, allocations: 188.2 kB / 352.7 MB, free: 1.32 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.0002678/0.1298, allocations: 38.25 kB / 352.7 MB, free: 1.277 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.352e-05/0.1299, allocations: 4.375 kB / 352.7 MB, free: 1.273 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004907/0.1303, allocations: 168.7 kB / 352.9 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.188e-05/0.1304, allocations: 4 kB / 352.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.1304, allocations: 4 kB / 352.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-06/0.1304, allocations: 0 / 352.9 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000166/0.1306, allocations: 35.97 kB / 352.9 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002702/0.1309, allocations: 178.5 kB / 353.1 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004013/0.1313, allocations: 170.4 kB / 353.3 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.1314, allocations: 41.64 kB / 353.3 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.868e-05/0.1315, allocations: 7.938 kB / 353.3 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.1315, allocations: 34.56 kB / 353.4 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of pre-optimization done (n=7): time 4.288e-06/0.1315, allocations: 3.984 kB / 353.4 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of matching and sorting (n=7): time 0.0004307/0.132, allocations: 121.5 kB / 353.5 MB, free: 400 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001093/0.1321, allocations: 85.09 kB / 353.6 MB, free: 296 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/0.1322, allocations: 129.1 kB / 353.7 MB, free: 160 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.535e-05/0.1323, allocations: 29.7 kB / 353.7 MB, free: 124 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.84e-05/0.1323, allocations: 88.14 kB / 353.8 MB, free: 32 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.293e-05/0.1324, allocations: 11.89 kB / 353.8 MB, free: 20 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.744e-05/0.1325, allocations: 21.72 kB / 353.8 MB, free: 15.99 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002616/0.1328, allocations: 323 kB / 354.2 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.875e-05/0.1328, allocations: 11.98 kB / 354.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.27e-05/0.1329, allocations: 58 kB / 354.2 MB, free: 15.58 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001515/0.1331, allocations: 81.88 kB / 354.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.1331, allocations: 0 / 354.3 MB, free: 15.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.000228/0.1333, allocations: 105.4 kB / 354.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.203e-05/0.1334, allocations: 4 kB / 354.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.007e-05/0.1334, allocations: 4 kB / 354.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.992e-05/0.1334, allocations: 0 / 354.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.1335, allocations: 23.92 kB / 354.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.421e-05/0.1336, allocations: 4 kB / 354.5 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.064e-05/0.1336, allocations: 12.03 kB / 354.5 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.086e-05/0.1336, allocations: 4 kB / 354.5 MB, free: 15.32 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 0.0001633/0.1338, allocations: 126 kB / 354.6 MB, free: 15.18 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.134, allocations: 73.56 kB / 354.7 MB, free: 15.11 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.846e-05/0.134, allocations: 12.38 kB / 354.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.134, allocations: 0 / 354.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.414e-06/0.1341, allocations: 0 / 354.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.528e-06/0.1341, allocations: 0 / 354.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001738/0.1342, allocations: 185.5 kB / 354.9 MB, free: 14.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.081e-06/0.1343, allocations: 7.938 kB / 354.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.681e-05/0.1343, allocations: 8 kB / 354.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.131e-06/0.1344, allocations: 4 kB / 354.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.546e-05/0.1344, allocations: 3.984 kB / 354.9 MB, free: 14.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1344, allocations: 4 kB / 354.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1344, allocations: 320 / 354.9 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002573/0.1347, allocations: 121.9 kB / 355 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.094e-05/0.1347, allocations: 93.02 kB / 355.1 MB, free: 14.58 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.015e-05/0.1348, allocations: 7.984 kB / 355.1 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.137e-05/0.1349, allocations: 12 kB / 355.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.496e-05/0.1349, allocations: 0 / 355.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.536e-05/0.1349, allocations: 4 kB / 355.1 MB, free: 14.56 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.948e-05/0.135, allocations: 95.27 kB / 355.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.135, allocations: 0 / 355.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.1353, allocations: 12 kB / 355.2 MB, free: 14.45 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.0008614/0.1361, allocations: 0.699 MB / 355.9 MB, free: 13.72 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002291/0.1364, allocations: 59.91 kB / 356 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.1364, allocations: 0 / 356 MB, free: 13.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.222e-05/0.1365, allocations: 12.48 kB / 356 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008517/0.1373, allocations: 0.7219 MB / 356.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00271/0.14, allocations: 1.416 MB / 358.1 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006869/0.1407, allocations: 0.6924 MB / 358.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.194e-05/0.1408, allocations: 3.984 kB / 358.8 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.105e-05/0.1409, allocations: 23.44 kB / 358.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of SimCode: time 1.292e-06/0.1409, allocations: 0 / 358.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04213/0.1831, allocations: 1.795 MB / 360.6 MB, free: 8.957 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003215/0.1834, allocations: 221.5 kB / 360.9 MB, free: 8.703 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.07/2.254, allocations: 0 / 360.9 MB, free: 8.703 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