Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.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.Blocks.Examples.CompareSincExpSine,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_CompareSincExpSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.CompareSincExpSine,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_CompareSincExpSine",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.0009739/0.0009741, allocations: 88.8 kB / 16.65 MB, free: 6.586 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.001141/0.001141, allocations: 181.9 kB / 17.56 MB, free: 6.203 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.608/1.608, allocations: 223.3 MB / 241.6 MB, free: 216 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003532, allocations: 8.531 kB / 301.5 MB, free: 6.043 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1208/0.1212, allocations: 50.41 MB / 351.9 MB, free: 3.625 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.CompareSincExpSine): time 0.001788/0.1231, allocations: 1.206 MB / 353.1 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.000817/0.1239, allocations: 439.8 kB / 353.6 MB, free: 1.973 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.508e-05/0.124, allocations: 3.938 kB / 353.6 MB, free: 1.969 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 3.505e-05/0.124, allocations: 7.922 kB / 353.6 MB, free: 1.961 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001367/0.1242, allocations: 19.86 kB / 353.6 MB, free: 1.941 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001849/0.1243, allocations: 23.97 kB / 353.6 MB, free: 1.918 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000113/0.1245, allocations: 59.73 kB / 353.7 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.113e-05/0.1245, allocations: 7.984 kB / 353.7 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.1247, allocations: 35.84 kB / 353.7 MB, free: 1.816 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.37e-05/0.1248, allocations: 31.91 kB / 353.8 MB, free: 1.785 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.43e-05/0.1248, allocations: 4 kB / 353.8 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.378e-05/0.1248, allocations: 0 / 353.8 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.64e-05/0.1249, allocations: 7.922 kB / 353.8 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.504e-05/0.125, allocations: 57.5 kB / 353.8 MB, free: 1.711 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001106/0.1251, allocations: 48.08 kB / 353.9 MB, free: 1.664 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.845e-06/0.1251, allocations: 4 kB / 353.9 MB, free: 1.66 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.126e-06/0.1251, allocations: 0 / 353.9 MB, free: 1.66 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.1251, allocations: 0 / 353.9 MB, free: 1.66 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0006433/0.1258, allocations: 387.2 kB / 354.3 MB, free: 1.234 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.279e-05/0.1258, allocations: 12.03 kB / 354.3 MB, free: 1.223 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.094e-05/0.1258, allocations: 34.73 kB / 354.3 MB, free: 1.18 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.818e-05/0.1259, allocations: 8.844 kB / 354.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001331/0.126, allocations: 180.2 kB / 354.5 MB, free: 0.957 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.126, allocations: 4.375 kB / 354.5 MB, free: 0.9531 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.687e-05/0.1261, allocations: 7.938 kB / 354.5 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002517/0.1263, allocations: 92.16 kB / 354.6 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.851e-05/0.1264, allocations: 8 kB / 354.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.162e-05/0.1264, allocations: 0 / 354.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.1264, allocations: 0 / 354.6 MB, free: 0.832 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002829/0.1267, allocations: 75.94 kB / 354.7 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002215/0.1269, allocations: 191.4 kB / 354.9 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002843/0.1272, allocations: 119.7 kB / 355 MB, free: 380 kB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.1274, allocations: 66.55 kB / 355 MB, free: 304 kB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.1274, allocations: 3.984 kB / 355 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.205e-05/0.1274, allocations: 30.56 kB / 355.1 MB, free: 260 kB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.1274, allocations: 0 / 355.1 MB, free: 260 kB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.00055/0.128, allocations: 169.9 kB / 355.2 MB, free: 84 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.263e-05/0.128, allocations: 106.8 kB / 355.3 MB, free: 15.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.1282, allocations: 126.1 kB / 355.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.1282, allocations: 29.64 kB / 355.5 MB, free: 15.78 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.518e-05/0.1282, allocations: 92.14 kB / 355.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.196e-05/0.1283, allocations: 15.73 kB / 355.6 MB, free: 15.67 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.621e-05/0.1283, allocations: 13.72 kB / 355.6 MB, free: 15.65 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001078/0.1284, allocations: 318.9 kB / 355.9 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001435/0.1286, allocations: 43.91 kB / 356 MB, free: 15.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001515/0.1287, allocations: 62.53 kB / 356 MB, free: 15.22 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002987/0.129, allocations: 98.45 kB / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1291, allocations: 0 / 356.1 MB, free: 15.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0003484/0.1294, allocations: 133.4 kB / 356.3 MB, free: 14.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.1294, allocations: 4 kB / 356.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.1294, allocations: 0 / 356.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.1295, allocations: 4 kB / 356.3 MB, free: 14.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.1296, allocations: 24.08 kB / 356.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/0.1296, allocations: 0 / 356.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.695e-05/0.1297, allocations: 15.98 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.699e-06/0.1298, allocations: 3.984 kB / 356.3 MB, free: 14.93 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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.314e-05/0.1298, allocations: 117.8 kB / 356.4 MB, free: 14.8 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.667e-05/0.1299, allocations: 7.906 kB / 356.4 MB, free: 14.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.103e-05/0.1299, allocations: 11.88 kB / 356.4 MB, free: 14.78 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.1299, allocations: 4 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1299, allocations: 0 / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.1299, allocations: 0 / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001383/0.1301, allocations: 181.6 kB / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.123e-06/0.1301, allocations: 0 / 356.6 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.1302, allocations: 27.92 kB / 356.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.1302, allocations: 4 kB / 356.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.1302, allocations: 0 / 356.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.005e-06/0.1302, allocations: 3.984 kB / 356.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.71e-07/0.1302, allocations: 4 kB / 356.7 MB, free: 14.51 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003688/0.1306, allocations: 158.6 kB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.1307, allocations: 85.02 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.1307, allocations: 0 / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001023/0.1308, allocations: 15.98 kB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.134e-05/0.1309, allocations: 19.92 kB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.563e-06/0.1309, allocations: 0 / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.786e-05/0.1309, allocations: 102.3 kB / 357 MB, free: 14.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1309, allocations: 0 / 357 MB, free: 14.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001962/0.1311, allocations: 16 kB / 357 MB, free: 14.08 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0006411/0.1318, allocations: 0.6921 MB / 357.7 MB, free: 13.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000341/0.1321, allocations: 92 kB / 357.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1322, allocations: 0 / 357.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000159/0.1323, allocations: 51.89 kB / 357.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000167/0.1325, allocations: 3.938 kB / 357.9 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005969/0.1331, allocations: 254 kB / 358.1 MB, free: 12.91 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002457/0.1334, allocations: 0.6926 MB / 358.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.999e-05/0.1334, allocations: 8.156 kB / 358.8 MB, free: 12.19 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.029e-05/0.1335, allocations: 19.44 kB / 358.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1335, allocations: 0 / 358.9 MB, free: 12.17 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01085/0.1444, allocations: 1.424 MB / 360.3 MB, free: 10.85 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001833/0.1446, allocations: 189.7 kB / 360.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.026/2.17, allocations: 0 / 360.5 MB, free: 10.59 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_CompareSincExpSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_CompareSincExpSine.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/CompareSincExpSine/CompareSincExpSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.CompareSincExpSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches