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.001782/0.001782, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002194/0.002194, allocations: 214.3 kB / 23.73 MB, free: 4.164 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.497/1.497, allocations: 230.5 MB / 257.4 MB, free: 7.789 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.2373/0.2373, allocations: 46.96 MB / 360.8 MB, free: 3.934 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.003267/0.003267, allocations: 79.88 kB / 0.4961 GB, free: 7.602 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.38/0.3833, allocations: 66.09 MB / 0.5607 GB, free: 3.93 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001744/0.385, allocations: 477 kB / 0.5611 GB, free: 3.465 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003731/0.3887, allocations: 2.279 MB / 0.5633 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.547e-05/0.3888, allocations: 0 / 0.5633 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.884e-05/0.3888, allocations: 0 / 0.5633 GB, free: 1.168 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 6.552e-06/0.3888, allocations: 0 / 0.5633 GB, free: 1.168 MB / 398.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.002929/0.3917, allocations: 1.117 MB / 0.5644 GB, free: 52 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.17e-05/0.3918, allocations: 4 kB / 0.5644 GB, free: 48 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.214e-05/0.3918, allocations: 0 / 0.5644 GB, free: 48 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.564e-05/0.3918, allocations: 0 / 0.5644 GB, free: 48 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.04e-05/0.3918, allocations: 0 / 0.5644 GB, free: 48 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.961e-06/0.3918, allocations: 0 / 0.5644 GB, free: 48 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001558/0.3934, allocations: 0.9756 MB / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.719e-06/0.3934, allocations: 4 kB / 0.5654 GB, free: 15.07 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.081e-05/0.3934, allocations: 3.984 kB / 0.5654 GB, free: 15.06 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006305/0.3941, allocations: 444.8 kB / 0.5658 GB, free: 14.63 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3941, allocations: 0 / 0.5658 GB, free: 14.63 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.3941, allocations: 0 / 0.5658 GB, free: 14.63 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.3941, allocations: 0 / 0.5658 GB, free: 14.63 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.0004599/0.3945, allocations: 367.2 kB / 0.5662 GB, free: 14.23 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.3946, allocations: 12.03 kB / 0.5662 GB, free: 14.22 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.874e-05/0.3946, allocations: 30.75 kB / 0.5662 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.265e-05/0.3946, allocations: 0.9375 kB / 0.5662 GB, free: 14.18 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.134e-05/0.3947, allocations: 106.5 kB / 0.5663 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.527e-06/0.3947, allocations: 8.375 kB / 0.5663 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.183e-05/0.3947, allocations: 4.359 kB / 0.5663 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.3948, allocations: 63.45 kB / 0.5664 GB, free: 13.97 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.3948, allocations: 4 kB / 0.5664 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.224e-06/0.3949, allocations: 0 / 0.5664 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.838e-06/0.3949, allocations: 0 / 0.5664 GB, free: 13.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.104e-05/0.3949, allocations: 25.7 kB / 0.5664 GB, free: 13.93 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001379/0.395, allocations: 116.8 kB / 0.5665 GB, free: 13.78 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.226e-05/0.3951, allocations: 48.27 kB / 0.5666 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.225e-05/0.3951, allocations: 34.66 kB / 0.5666 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.438e-06/0.3951, allocations: 4 kB / 0.5666 GB, free: 13.67 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.494e-05/0.3952, allocations: 64.14 kB / 0.5667 GB, free: 13.59 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3952, allocations: 0 / 0.5667 GB, free: 13.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001973/0.3954, allocations: 122.7 kB / 0.5668 GB, free: 13.45 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.3954, allocations: 81.11 kB / 0.5669 GB, free: 13.35 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.459e-05/0.3955, allocations: 93.81 kB / 0.567 GB, free: 13.25 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.451e-05/0.3955, allocations: 25.7 kB / 0.567 GB, free: 13.21 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.44e-05/0.3955, allocations: 80.14 kB / 0.5671 GB, free: 13.13 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.67e-05/0.3956, allocations: 0 / 0.5671 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.84e-05/0.3956, allocations: 13.84 kB / 0.5671 GB, free: 13.11 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001407/0.3957, allocations: 318.8 kB / 0.5674 GB, free: 12.79 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.323e-05/0.3958, allocations: 29.7 kB / 0.5674 GB, free: 12.76 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.637e-05/0.3958, allocations: 33.69 kB / 0.5674 GB, free: 12.72 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.295e-05/0.3958, allocations: 64.2 kB / 0.5675 GB, free: 12.64 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.3958, allocations: 0 / 0.5675 GB, free: 12.64 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.075e-05/0.3959, allocations: 89.11 kB / 0.5676 GB, free: 12.54 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.589e-05/0.396, allocations: 37.62 kB / 0.5676 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.396, allocations: 0 / 0.5676 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.454e-05/0.396, allocations: 0 / 0.5676 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.396, allocations: 4.094 kB / 0.5676 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.428e-06/0.396, allocations: 0 / 0.5676 GB, free: 12.49 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.778e-05/0.396, allocations: 4 kB / 0.5676 GB, free: 12.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-06/0.396, allocations: 0 / 0.5676 GB, free: 12.48 MB / 414.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 9.588e-05/0.3961, allocations: 131.5 kB / 0.5677 GB, free: 12.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.267e-05/0.3961, allocations: 7.938 kB / 0.5678 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.416e-05/0.3961, allocations: 3 kB / 0.5678 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.3961, allocations: 0 / 0.5678 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.3961, allocations: 0 / 0.5678 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.903e-06/0.3961, allocations: 0 / 0.5678 GB, free: 12.33 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001021/0.3962, allocations: 124.8 kB / 0.5679 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.3962, allocations: 0 / 0.5679 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.3962, allocations: 3.938 kB / 0.5679 GB, free: 12.16 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.442e-06/0.3962, allocations: 7.938 kB / 0.5679 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.031e-06/0.3963, allocations: 0 / 0.5679 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.3963, allocations: 0 / 0.5679 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.51e-07/0.3963, allocations: 0 / 0.5679 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001253/0.3964, allocations: 120.5 kB / 0.568 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.374e-06/0.3964, allocations: 7.938 kB / 0.568 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.159e-05/0.3964, allocations: 0 / 0.568 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.935e-06/0.3964, allocations: 0 / 0.568 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.427e-06/0.3964, allocations: 4.031 kB / 0.568 GB, free: 11.99 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.452e-06/0.3964, allocations: 7.984 kB / 0.568 GB, free: 11.98 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.757e-05/0.3965, allocations: 75.28 kB / 0.5681 GB, free: 11.91 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3965, allocations: 0 / 0.5681 GB, free: 11.91 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004483/0.3969, allocations: 155.5 kB / 0.5682 GB, free: 11.76 MB / 414.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.001121/0.398, allocations: 0.9531 MB / 0.5692 GB, free: 10.77 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001394/0.3982, allocations: 110.8 kB / 0.5693 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.3982, allocations: 4 kB / 0.5693 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.49e-05/0.3982, allocations: 81.11 kB / 0.5694 GB, free: 10.54 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001261/0.3984, allocations: 4 kB / 0.5694 GB, free: 10.53 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004389/0.3988, allocations: 220 kB / 0.5696 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.331e-05/0.3988, allocations: 51.36 kB / 0.5696 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.3e-06/0.3988, allocations: 0 / 0.5696 GB, free: 10.2 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.685e-05/0.3989, allocations: 11.44 kB / 0.5696 GB, free: 10.19 MB / 414.1 MB Notification: Performance of SimCode: time 3.71e-07/0.3989, allocations: 0 / 0.5696 GB, free: 10.19 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03439/0.4333, allocations: 6.187 MB / 0.5757 GB, free: 4.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.63, allocations: 0 / 0.5757 GB, free: 4.09 MB / 414.1 MB " [Timeout remaining time 648] (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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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: 14.514693410135806]