Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.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.001975/0.001975, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001601/0.001601, allocations: 212.7 kB / 24.52 MB, free: 3.91 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.502/1.502, allocations: 230.5 MB / 258.2 MB, free: 7.785 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.2567/0.2567, allocations: 46.93 MB / 361.6 MB, free: 3.922 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.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002324/0.002324, allocations: 87.84 kB / 0.4969 GB, free: 7.566 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3278, allocations: 66.08 MB / 0.5614 GB, free: 4.023 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00155/0.3294, allocations: 463.5 kB / 0.5619 GB, free: 3.574 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003552/0.3329, allocations: 2.287 MB / 0.5641 GB, free: 1.27 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.393e-05/0.333, allocations: 4 kB / 0.5641 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.442e-05/0.333, allocations: 0 / 0.5641 GB, free: 1.266 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.891e-06/0.333, allocations: 0 / 0.5641 GB, free: 1.266 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.002879/0.3359, allocations: 1.104 MB / 0.5652 GB, free: 168 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.901e-05/0.3359, allocations: 4 kB / 0.5652 GB, free: 164 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.69e-05/0.336, allocations: 3.984 kB / 0.5652 GB, free: 160 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.715e-05/0.336, allocations: 8 kB / 0.5652 GB, free: 152 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.497e-05/0.336, allocations: 7.922 kB / 0.5652 GB, free: 144 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.551e-06/0.336, allocations: 0 / 0.5652 GB, free: 144 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00165/0.3376, allocations: 0.999 MB / 0.5662 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 8.707e-06/0.3377, allocations: 0 / 0.5662 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.934e-05/0.3377, allocations: 0 / 0.5662 GB, free: 15.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006463/0.3383, allocations: 440.9 kB / 0.5666 GB, free: 14.71 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.3383, allocations: 0 / 0.5666 GB, free: 14.71 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.3383, allocations: 0 / 0.5666 GB, free: 14.71 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.3383, allocations: 4 kB / 0.5666 GB, free: 14.71 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.0004511/0.3388, allocations: 367.2 kB / 0.5669 GB, free: 14.31 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.22e-05/0.3388, allocations: 8.031 kB / 0.567 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.767e-05/0.3388, allocations: 192 / 0.567 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.519e-05/0.3389, allocations: 34.75 kB / 0.567 GB, free: 14.26 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.777e-05/0.3389, allocations: 8.922 kB / 0.567 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.117e-05/0.339, allocations: 102.5 kB / 0.5671 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.638e-06/0.339, allocations: 384 / 0.5671 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.001e-06/0.339, allocations: 384 / 0.5671 GB, free: 14.13 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.069e-05/0.3391, allocations: 63.28 kB / 0.5672 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.356e-06/0.3391, allocations: 7.938 kB / 0.5672 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.322e-06/0.3391, allocations: 4 kB / 0.5672 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.286e-06/0.3391, allocations: 0 / 0.5672 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3e-05/0.3391, allocations: 29.7 kB / 0.5672 GB, free: 14.01 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001395/0.3393, allocations: 124.7 kB / 0.5673 GB, free: 13.84 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.924e-05/0.3393, allocations: 44.31 kB / 0.5674 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.991e-05/0.3394, allocations: 30.56 kB / 0.5674 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.559e-05/0.3394, allocations: 11.94 kB / 0.5674 GB, free: 13.73 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.638e-05/0.3394, allocations: 56.27 kB / 0.5674 GB, free: 13.66 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.92e-07/0.3394, allocations: 0 / 0.5674 GB, free: 13.66 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001993/0.3396, allocations: 118.9 kB / 0.5676 GB, free: 13.52 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.491e-05/0.3397, allocations: 81.11 kB / 0.5676 GB, free: 13.43 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.608e-05/0.3397, allocations: 93.81 kB / 0.5677 GB, free: 13.32 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.3398, allocations: 29.7 kB / 0.5678 GB, free: 13.29 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.926e-05/0.3398, allocations: 80.14 kB / 0.5678 GB, free: 13.21 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.72e-05/0.3398, allocations: 0 / 0.5678 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.613e-05/0.3398, allocations: 9.719 kB / 0.5678 GB, free: 13.19 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.34, allocations: 322.8 kB / 0.5682 GB, free: 12.87 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.584e-05/0.34, allocations: 25.7 kB / 0.5682 GB, free: 12.84 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.169e-05/0.34, allocations: 29.64 kB / 0.5682 GB, free: 12.8 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.099e-05/0.3401, allocations: 64.33 kB / 0.5683 GB, free: 12.72 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3401, allocations: 0 / 0.5683 GB, free: 12.72 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.068e-05/0.3402, allocations: 97.03 kB / 0.5684 GB, free: 12.61 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.3402, allocations: 33.7 kB / 0.5684 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.467e-06/0.3402, allocations: 0 / 0.5684 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.3402, allocations: 0 / 0.5684 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.61e-07/0.3402, allocations: 0 / 0.5684 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.061e-06/0.3402, allocations: 3.984 kB / 0.5684 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.411e-05/0.3403, allocations: 0 / 0.5684 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.975e-06/0.3403, allocations: 3.984 kB / 0.5684 GB, free: 12.56 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.0001061/0.3404, allocations: 147.5 kB / 0.5685 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.929e-06/0.3404, allocations: 3.938 kB / 0.5685 GB, free: 12.4 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.006e-05/0.3404, allocations: 3 kB / 0.5685 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.32e-07/0.3404, allocations: 7.938 kB / 0.5686 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.176e-06/0.3404, allocations: 0 / 0.5686 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-06/0.3404, allocations: 0 / 0.5686 GB, free: 12.39 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.92e-05/0.3405, allocations: 116.8 kB / 0.5687 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3405, allocations: 0 / 0.5687 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.705e-06/0.3405, allocations: 3.938 kB / 0.5687 GB, free: 12.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.182e-06/0.3405, allocations: 4 kB / 0.5687 GB, free: 12.22 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.178e-06/0.3405, allocations: 7.922 kB / 0.5687 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.12e-07/0.3405, allocations: 4 kB / 0.5687 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3405, allocations: 3.938 kB / 0.5687 GB, free: 12.21 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001111/0.3406, allocations: 112.5 kB / 0.5688 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.768e-06/0.3406, allocations: 11.92 kB / 0.5688 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.303e-05/0.3406, allocations: 4 kB / 0.5688 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.163e-05/0.3407, allocations: 4 kB / 0.5688 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.917e-06/0.3407, allocations: 0 / 0.5688 GB, free: 12.05 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.3407, allocations: 0 / 0.5688 GB, free: 12.05 MB / 414.1 MB Notification: Performance of sorting global known variables: time 4.049e-05/0.3407, allocations: 75.28 kB / 0.5689 GB, free: 11.97 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3407, allocations: 0 / 0.5689 GB, free: 11.97 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004696/0.3412, allocations: 163.6 kB / 0.569 GB, free: 11.81 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.001161/0.3423, allocations: 0.9366 MB / 0.57 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.3425, allocations: 110.8 kB / 0.5701 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3425, allocations: 0 / 0.5701 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.753e-05/0.3425, allocations: 89.03 kB / 0.5701 GB, free: 10.6 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.3427, allocations: 4 kB / 0.5701 GB, free: 10.59 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004415/0.3431, allocations: 211.9 kB / 0.5704 GB, free: 10.34 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.118e-05/0.3432, allocations: 51.36 kB / 0.5704 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.939e-06/0.3432, allocations: 0 / 0.5704 GB, free: 10.27 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.59e-05/0.3432, allocations: 11.44 kB / 0.5704 GB, free: 10.26 MB / 414.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3432, allocations: 4.125 kB / 0.5704 GB, free: 10.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.3705, allocations: 5.843 MB / 0.5761 GB, free: 4.516 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.35, allocations: 11.38 kB / 0.5761 GB, free: 4.508 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_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_trunk_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: 15.389066557982005]