Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.001695/0.001695, allocations: 120.4 kB / 18.5 MB, free: 4.578 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.002097/0.002097, allocations: 208.9 kB / 21.46 MB, free: 1.625 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.547/1.547, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.246/0.246, allocations: 46.9 MB / 357.4 MB, free: 10.48 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002468/0.002468, allocations: 75.88 kB / 0.4912 GB, free: 8.52 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1341/0.1366, allocations: 65.99 MB / 0.5557 GB, free: 6.398 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001815/0.1384, allocations: 472.9 kB / 0.5561 GB, free: 5.93 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.004174/0.1426, allocations: 2.426 MB / 0.5585 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.907e-05/0.1426, allocations: 0 / 0.5585 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 1.111e-05/0.1426, allocations: 0 / 0.5585 GB, free: 3.484 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 5.35e-06/0.1426, allocations: 0 / 0.5585 GB, free: 3.484 MB / 414.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.003363/0.146, allocations: 1.159 MB / 0.5596 GB, free: 2.324 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 6.3e-05/0.1461, allocations: 7.938 kB / 0.5596 GB, free: 2.316 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.135e-05/0.1461, allocations: 0 / 0.5596 GB, free: 2.316 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.104e-05/0.1461, allocations: 7.984 kB / 0.5596 GB, free: 2.309 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.312e-05/0.1462, allocations: 0 / 0.5596 GB, free: 2.309 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 5.761e-06/0.1462, allocations: 0 / 0.5596 GB, free: 2.309 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002057/0.1482, allocations: 1.03 MB / 0.5606 GB, free: 1.277 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.273e-05/0.1482, allocations: 4 kB / 0.5606 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.119e-05/0.1483, allocations: 0 / 0.5606 GB, free: 1.273 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009267/0.1492, allocations: 455 kB / 0.5611 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.517e-06/0.1492, allocations: 0 / 0.5611 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.1492, allocations: 0 / 0.5611 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.1492, allocations: 0 / 0.5611 GB, free: 0.8281 MB / 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.0005605/0.1498, allocations: 440.4 kB / 0.5615 GB, free: 352 kB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.538e-05/0.1498, allocations: 15.97 kB / 0.5615 GB, free: 336 kB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.649e-05/0.1498, allocations: 34.75 kB / 0.5615 GB, free: 292 kB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.63e-05/0.1499, allocations: 0.9375 kB / 0.5615 GB, free: 292 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.15, allocations: 172.3 kB / 0.5617 GB, free: 80 kB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.995e-06/0.15, allocations: 384 / 0.5617 GB, free: 80 kB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.129e-05/0.15, allocations: 384 / 0.5617 GB, free: 80 kB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.943e-05/0.1501, allocations: 41.81 kB / 0.5617 GB, free: 32 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.1501, allocations: 3.938 kB / 0.5617 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.374e-06/0.1501, allocations: 0 / 0.5617 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.218e-06/0.1501, allocations: 0 / 0.5617 GB, free: 28 kB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.886e-05/0.1501, allocations: 7.938 kB / 0.5618 GB, free: 20 kB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001744/0.1503, allocations: 149.7 kB / 0.5619 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.679e-05/0.1504, allocations: 14.58 kB / 0.5619 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.942e-05/0.1504, allocations: 8.953 kB / 0.5619 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.469e-06/0.1504, allocations: 0 / 0.5619 GB, free: 15.79 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.002e-05/0.1504, allocations: 64.2 kB / 0.562 GB, free: 15.71 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.082e-06/0.1504, allocations: 0 / 0.562 GB, free: 15.71 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001924/0.1506, allocations: 67.33 kB / 0.562 GB, free: 15.63 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.505e-05/0.1507, allocations: 81.23 kB / 0.5621 GB, free: 15.54 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.932e-05/0.1507, allocations: 93.81 kB / 0.5622 GB, free: 15.43 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.433e-05/0.1508, allocations: 25.7 kB / 0.5622 GB, free: 15.4 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.764e-05/0.1508, allocations: 80.14 kB / 0.5623 GB, free: 15.32 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.1508, allocations: 4 kB / 0.5623 GB, free: 15.32 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.304e-05/0.1509, allocations: 13.72 kB / 0.5623 GB, free: 15.3 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.151, allocations: 310.8 kB / 0.5626 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.265e-05/0.151, allocations: 4 kB / 0.5626 GB, free: 14.98 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.871e-06/0.151, allocations: 4 kB / 0.5626 GB, free: 14.98 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.214e-05/0.1511, allocations: 68.19 kB / 0.5627 GB, free: 14.89 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1511, allocations: 0 / 0.5627 GB, free: 14.89 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.531e-05/0.1512, allocations: 63.41 kB / 0.5628 GB, free: 14.82 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.1512, allocations: 33.64 kB / 0.5628 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.1512, allocations: 0 / 0.5628 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.1512, allocations: 0 / 0.5628 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.31e-07/0.1512, allocations: 0 / 0.5628 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.1512, allocations: 0 / 0.5628 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.963e-05/0.1513, allocations: 12.08 kB / 0.5628 GB, free: 14.77 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.1513, allocations: 3.938 kB / 0.5628 GB, free: 14.77 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.0001053/0.1514, allocations: 131.5 kB / 0.5629 GB, free: 14.62 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.368e-05/0.1514, allocations: 7.938 kB / 0.5629 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.945e-06/0.1514, allocations: 3.125 kB / 0.5629 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.423e-06/0.1514, allocations: 0 / 0.5629 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.1514, allocations: 0 / 0.5629 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.954e-06/0.1514, allocations: 0 / 0.5629 GB, free: 14.61 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001234/0.1515, allocations: 145.7 kB / 0.5631 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1515, allocations: 4 kB / 0.5631 GB, free: 14.42 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.91e-07/0.1515, allocations: 4 kB / 0.5631 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.1515, allocations: 3.938 kB / 0.5631 GB, free: 14.41 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.1515, allocations: 7.938 kB / 0.5631 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.1515, allocations: 4 kB / 0.5631 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.1515, allocations: 0 / 0.5631 GB, free: 14.4 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.1517, allocations: 90.83 kB / 0.5632 GB, free: 14.29 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.781e-05/0.1517, allocations: 81.05 kB / 0.5633 GB, free: 14.19 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.405e-05/0.1517, allocations: 7.969 kB / 0.5633 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.729e-06/0.1517, allocations: 0 / 0.5633 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.896e-05/0.1518, allocations: 4 kB / 0.5633 GB, free: 14.18 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.146e-06/0.1518, allocations: 0 / 0.5633 GB, free: 14.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 5.328e-05/0.1518, allocations: 75.28 kB / 0.5634 GB, free: 14.1 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1518, allocations: 0 / 0.5634 GB, free: 14.1 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0005918/0.1524, allocations: 159.5 kB / 0.5635 GB, free: 13.95 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.001399/0.1538, allocations: 0.9185 MB / 0.5644 GB, free: 13 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0001432/0.154, allocations: 55.41 kB / 0.5645 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.154, allocations: 0 / 0.5645 GB, free: 12.93 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 4.882e-05/0.154, allocations: 59.39 kB / 0.5645 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001385/0.1541, allocations: 0 / 0.5645 GB, free: 12.86 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005116/0.1547, allocations: 190.2 kB / 0.5647 GB, free: 12.63 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003554/0.155, allocations: 0.6767 MB / 0.5654 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 6.883e-06/0.155, allocations: 4.062 kB / 0.5654 GB, free: 11.93 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.861e-05/0.155, allocations: 15.44 kB / 0.5654 GB, free: 11.91 MB / 430.1 MB Notification: Performance of SimCode: time 9.62e-07/0.155, allocations: 0 / 0.5654 GB, free: 11.91 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03188/0.1869, allocations: 5.668 MB / 0.5709 GB, free: 6.32 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.441/8.627, allocations: 0 / 0.5709 GB, free: 6.32 MB / 430.1 MB " [Timeout remaining time 651] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexFunctions.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.681412435136735]