Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 113 kB / 18.49 MB, free: 4.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001525/0.001525, allocations: 217.4 kB / 21.46 MB, free: 1.586 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.52/1.52, allocations: 230.6 MB / 254.8 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2343/0.2343, allocations: 46.92 MB / 357.8 MB, free: 10.28 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002245/0.002245, allocations: 67.91 kB / 0.4916 GB, free: 7.945 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1216/0.1238, allocations: 65.99 MB / 0.556 GB, free: 5.832 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00159/0.1254, allocations: 482.6 kB / 0.5565 GB, free: 5.359 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004263/0.1297, allocations: 2.426 MB / 0.5589 GB, free: 2.914 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.316e-05/0.1297, allocations: 0 / 0.5589 GB, free: 2.914 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.441e-05/0.1297, allocations: 0 / 0.5589 GB, free: 2.914 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 7.103e-06/0.1298, allocations: 0 / 0.5589 GB, free: 2.914 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/ComplexMath.mo:4:3-189:23:writable] Warning: Pure function 'ModelicaTest.ComplexMath.ComplexFunctions' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.003252/0.133, allocations: 1.148 MB / 0.56 GB, free: 1.766 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 5.838e-05/0.1331, allocations: 0 / 0.56 GB, free: 1.766 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.637e-05/0.1331, allocations: 8 kB / 0.56 GB, free: 1.758 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.031e-05/0.1331, allocations: 3.938 kB / 0.56 GB, free: 1.754 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.208e-05/0.1331, allocations: 0 / 0.56 GB, free: 1.754 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 6.512e-06/0.1332, allocations: 0 / 0.56 GB, free: 1.754 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002017/0.1352, allocations: 1.042 MB / 0.561 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.208e-05/0.1352, allocations: 0 / 0.561 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.684e-05/0.1352, allocations: 4 kB / 0.561 GB, free: 0.707 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000782/0.136, allocations: 447 kB / 0.5614 GB, free: 276 kB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.589e-06/0.136, allocations: 0 / 0.5614 GB, free: 276 kB / 414.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.136, allocations: 4 kB / 0.5614 GB, free: 272 kB / 414.1 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.136, allocations: 0 / 0.5614 GB, free: 272 kB / 414.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0005495/0.1365, allocations: 448.3 kB / 0.5619 GB, free: 15.77 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.788e-05/0.1366, allocations: 11.97 kB / 0.5619 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.224e-05/0.1366, allocations: 4.125 kB / 0.5619 GB, free: 15.76 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.819e-05/0.1366, allocations: 30.75 kB / 0.5619 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.657e-05/0.1367, allocations: 0.9375 kB / 0.5619 GB, free: 15.72 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001226/0.1368, allocations: 160.4 kB / 0.5621 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.013e-06/0.1368, allocations: 4.375 kB / 0.5621 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.257e-05/0.1368, allocations: 4.375 kB / 0.5621 GB, free: 15.52 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.423e-05/0.1369, allocations: 37.61 kB / 0.5621 GB, free: 15.47 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.1369, allocations: 7.938 kB / 0.5621 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.683e-06/0.1369, allocations: 0 / 0.5621 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.048e-06/0.1369, allocations: 0 / 0.5621 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.77e-05/0.1369, allocations: 0 / 0.5621 GB, free: 15.46 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.1371, allocations: 145.7 kB / 0.5623 GB, free: 15.27 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.144e-05/0.1371, allocations: 22.61 kB / 0.5623 GB, free: 15.24 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.536e-05/0.1371, allocations: 4.859 kB / 0.5623 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.046e-05/0.1372, allocations: 3.938 kB / 0.5623 GB, free: 15.23 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.498e-05/0.1372, allocations: 64.31 kB / 0.5623 GB, free: 15.15 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.1372, allocations: 0 / 0.5623 GB, free: 15.15 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002218/0.1374, allocations: 71.33 kB / 0.5624 GB, free: 15.07 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.649e-05/0.1375, allocations: 77.11 kB / 0.5625 GB, free: 14.98 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.472e-05/0.1376, allocations: 93.94 kB / 0.5626 GB, free: 14.88 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.748e-05/0.1376, allocations: 29.7 kB / 0.5626 GB, free: 14.84 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.888e-05/0.1376, allocations: 80.14 kB / 0.5627 GB, free: 14.76 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.829e-05/0.1376, allocations: 0 / 0.5627 GB, free: 14.76 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.1377, allocations: 17.7 kB / 0.5627 GB, free: 14.73 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001594/0.1378, allocations: 310.8 kB / 0.563 GB, free: 14.42 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.138e-05/0.1379, allocations: 0 / 0.563 GB, free: 14.42 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.326e-06/0.1379, allocations: 4 kB / 0.563 GB, free: 14.42 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.021e-05/0.1379, allocations: 68.27 kB / 0.5631 GB, free: 14.34 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1379, allocations: 0 / 0.5631 GB, free: 14.34 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.713e-05/0.138, allocations: 67.33 kB / 0.5631 GB, free: 14.26 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.422e-05/0.1381, allocations: 29.7 kB / 0.5632 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1381, allocations: 4 kB / 0.5632 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.645e-05/0.1381, allocations: 0 / 0.5632 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.32e-07/0.1381, allocations: 0 / 0.5632 GB, free: 14.22 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.1381, allocations: 7.984 kB / 0.5632 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.673e-05/0.1381, allocations: 3.938 kB / 0.5632 GB, free: 14.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.754e-06/0.1381, allocations: 0 / 0.5632 GB, free: 14.21 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001239/0.1383, allocations: 143.6 kB / 0.5633 GB, free: 14.05 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.464e-05/0.1383, allocations: 7.922 kB / 0.5633 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.247e-06/0.1383, allocations: 3.125 kB / 0.5633 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-06/0.1383, allocations: 0 / 0.5633 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.1383, allocations: 0 / 0.5633 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.089e-06/0.1383, allocations: 7.938 kB / 0.5633 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001299/0.1384, allocations: 141.7 kB / 0.5635 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.1384, allocations: 0 / 0.5635 GB, free: 13.85 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.554e-06/0.1384, allocations: 3.938 kB / 0.5635 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-06/0.1384, allocations: 4 kB / 0.5635 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.387e-06/0.1384, allocations: 7.922 kB / 0.5635 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.1384, allocations: 4 kB / 0.5635 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.81e-07/0.1384, allocations: 0 / 0.5635 GB, free: 13.83 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001124/0.1386, allocations: 82.84 kB / 0.5636 GB, free: 13.72 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.554e-05/0.1386, allocations: 85.03 kB / 0.5636 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.315e-05/0.1386, allocations: 4 kB / 0.5636 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.146e-06/0.1386, allocations: 0 / 0.5636 GB, free: 13.62 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.839e-05/0.1387, allocations: 4.031 kB / 0.5637 GB, free: 13.61 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.1387, allocations: 0 / 0.5637 GB, free: 13.61 MB / 430.1 MB Notification: Performance of sorting global known variables: time 4.028e-05/0.1387, allocations: 75.28 kB / 0.5637 GB, free: 13.54 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1387, allocations: 0 / 0.5637 GB, free: 13.54 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005314/0.1392, allocations: 163.5 kB / 0.5639 GB, free: 13.38 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (result) * Number of discrete states: 1 (result) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.001215/0.1404, allocations: 0.91 MB / 0.5648 GB, free: 12.44 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001289/0.1406, allocations: 63.41 kB / 0.5648 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1406, allocations: 0 / 0.5648 GB, free: 12.36 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 3.956e-05/0.1406, allocations: 55.41 kB / 0.5649 GB, free: 12.3 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001309/0.1407, allocations: 2.391 kB / 0.5649 GB, free: 12.3 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000457/0.1412, allocations: 194.2 kB / 0.5651 GB, free: 12.07 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.1415, allocations: 0.6767 MB / 0.5657 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.312e-06/0.1416, allocations: 0 / 0.5657 GB, free: 11.36 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.864e-05/0.1416, allocations: 11.44 kB / 0.5657 GB, free: 11.35 MB / 430.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1416, allocations: 128 / 0.5657 GB, free: 11.35 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02295/0.1645, allocations: 5.717 MB / 0.5713 GB, free: 5.742 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.579/8.743, allocations: 6.406 kB / 0.5713 GB, free: 5.738 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.ComplexMath.TestComplexOperations.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: 11.818127496982925]