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.001385/0.001385, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001438/0.001438, allocations: 210.1 kB / 24.52 MB, free: 3.941 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.528/1.528, allocations: 230.5 MB / 258.2 MB, free: 7.809 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.2291/0.2291, allocations: 46.96 MB / 361.6 MB, free: 3.938 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00224/0.00224, allocations: 79.88 kB / 0.4969 GB, free: 7.602 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3819/0.3841, allocations: 66.08 MB / 0.5614 GB, free: 4.066 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001884/0.386, allocations: 479.5 kB / 0.5619 GB, free: 3.602 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.00387/0.3899, allocations: 2.291 MB / 0.5641 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.837e-05/0.3899, allocations: 0 / 0.5641 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.618e-05/0.3899, allocations: 0 / 0.5641 GB, free: 1.293 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.951e-06/0.3899, allocations: 0 / 0.5641 GB, free: 1.293 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.003214/0.3932, allocations: 1.101 MB / 0.5652 GB, free: 196 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.841e-05/0.3932, allocations: 8 kB / 0.5652 GB, free: 188 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.663e-05/0.3932, allocations: 0 / 0.5652 GB, free: 188 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.362e-05/0.3933, allocations: 0 / 0.5652 GB, free: 188 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.186e-05/0.3933, allocations: 3.938 kB / 0.5652 GB, free: 184 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-06/0.3933, allocations: 0 / 0.5652 GB, free: 184 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001659/0.3949, allocations: 1.007 MB / 0.5662 GB, free: 15.17 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.293e-05/0.395, allocations: 7.984 kB / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.148e-05/0.395, allocations: 0 / 0.5662 GB, free: 15.16 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006736/0.3957, allocations: 437 kB / 0.5666 GB, free: 14.74 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.468e-06/0.3957, allocations: 0 / 0.5666 GB, free: 14.74 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.3957, allocations: 0 / 0.5666 GB, free: 14.74 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.219e-06/0.3957, allocations: 0 / 0.5666 GB, free: 14.74 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.0006019/0.3963, allocations: 367.2 kB / 0.5669 GB, free: 14.34 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.3963, allocations: 12.03 kB / 0.567 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.357e-05/0.3963, allocations: 192 / 0.567 GB, free: 14.33 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.875e-05/0.3964, allocations: 30.75 kB / 0.567 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.545e-05/0.3964, allocations: 0.9375 kB / 0.567 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001007/0.3965, allocations: 118.5 kB / 0.5671 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.524e-06/0.3965, allocations: 384 / 0.5671 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.113e-05/0.3965, allocations: 384 / 0.5671 GB, free: 14.15 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001097/0.3966, allocations: 63.33 kB / 0.5672 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.346e-06/0.3966, allocations: 0 / 0.5672 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.133e-06/0.3966, allocations: 0 / 0.5672 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.807e-06/0.3966, allocations: 0 / 0.5672 GB, free: 14.08 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.468e-05/0.3967, allocations: 25.7 kB / 0.5672 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001584/0.3968, allocations: 128.7 kB / 0.5673 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.38e-05/0.3969, allocations: 48.25 kB / 0.5674 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.614e-05/0.3969, allocations: 38.55 kB / 0.5674 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.863e-06/0.3969, allocations: 3.938 kB / 0.5674 GB, free: 13.77 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.83e-05/0.397, allocations: 60.31 kB / 0.5675 GB, free: 13.69 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.397, allocations: 4 kB / 0.5675 GB, free: 13.69 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002321/0.3972, allocations: 114.8 kB / 0.5676 GB, free: 13.55 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.3973, allocations: 81.09 kB / 0.5676 GB, free: 13.45 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.3974, allocations: 93.81 kB / 0.5677 GB, free: 13.35 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.3975, allocations: 25.7 kB / 0.5678 GB, free: 13.32 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.639e-05/0.3975, allocations: 84.08 kB / 0.5678 GB, free: 13.23 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.128e-05/0.3975, allocations: 3.938 kB / 0.5678 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.837e-05/0.3975, allocations: 17.84 kB / 0.5679 GB, free: 13.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000216/0.3978, allocations: 314.8 kB / 0.5682 GB, free: 12.89 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.648e-05/0.3978, allocations: 29.7 kB / 0.5682 GB, free: 12.86 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.272e-05/0.3978, allocations: 25.7 kB / 0.5682 GB, free: 12.82 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.81e-05/0.3979, allocations: 64.25 kB / 0.5683 GB, free: 12.75 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.452e-06/0.3979, allocations: 0 / 0.5683 GB, free: 12.75 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.644e-05/0.398, allocations: 93.05 kB / 0.5684 GB, free: 12.64 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.398, allocations: 29.7 kB / 0.5684 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.398, allocations: 0 / 0.5684 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.886e-05/0.398, allocations: 4.094 kB / 0.5684 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.356e-06/0.398, allocations: 3.984 kB / 0.5684 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.221e-06/0.398, allocations: 7.938 kB / 0.5684 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.541e-05/0.3981, allocations: 0 / 0.5684 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.915e-06/0.3981, allocations: 0 / 0.5684 GB, free: 12.59 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 0.0001124/0.3982, allocations: 135.5 kB / 0.5685 GB, free: 12.44 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.03e-05/0.3982, allocations: 3.938 kB / 0.5685 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.377e-05/0.3982, allocations: 3 kB / 0.5685 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.172e-06/0.3982, allocations: 0 / 0.5685 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3982, allocations: 0 / 0.5685 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3982, allocations: 0 / 0.5685 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001121/0.3983, allocations: 128.8 kB / 0.5687 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.91e-07/0.3983, allocations: 0 / 0.5687 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.408e-06/0.3983, allocations: 3.938 kB / 0.5687 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.052e-06/0.3983, allocations: 0 / 0.5687 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.3983, allocations: 3.938 kB / 0.5687 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.22e-07/0.3983, allocations: 0 / 0.5687 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.322e-05/0.3984, allocations: 4 kB / 0.5687 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001484/0.3985, allocations: 120.5 kB / 0.5688 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.252e-06/0.3985, allocations: 3.938 kB / 0.5688 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.22e-05/0.3985, allocations: 0 / 0.5688 GB, free: 12.1 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.498e-06/0.3985, allocations: 4.031 kB / 0.5688 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.343e-05/0.3986, allocations: 7.938 kB / 0.5688 GB, free: 12.09 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.3986, allocations: 4 kB / 0.5688 GB, free: 12.08 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.273e-05/0.3986, allocations: 75.28 kB / 0.5689 GB, free: 12.01 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3986, allocations: 0 / 0.5689 GB, free: 12.01 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004843/0.3991, allocations: 159.5 kB / 0.569 GB, free: 11.85 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.001105/0.4002, allocations: 0.9313 MB / 0.5699 GB, free: 10.88 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001368/0.4003, allocations: 118.8 kB / 0.5701 GB, free: 10.74 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.4003, allocations: 3.938 kB / 0.5701 GB, free: 10.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.294e-05/0.4004, allocations: 81.11 kB / 0.5701 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001179/0.4005, allocations: 128 / 0.5701 GB, free: 10.64 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.4009, allocations: 215.9 kB / 0.5703 GB, free: 10.38 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.073e-05/0.401, allocations: 55.36 kB / 0.5704 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.281e-06/0.401, allocations: 0 / 0.5704 GB, free: 10.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.457e-05/0.401, allocations: 7.438 kB / 0.5704 GB, free: 10.3 MB / 414.1 MB Notification: Performance of SimCode: time 2.81e-07/0.401, allocations: 0 / 0.5704 GB, free: 10.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02967/0.4307, allocations: 5.851 MB / 0.5761 GB, free: 4.551 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.66/12.09, allocations: 7.438 kB / 0.5761 GB, free: 4.547 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: 15.070789816090837]