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.001543/0.001543, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001393/0.001393, allocations: 207.7 kB / 23.73 MB, free: 4.523 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.447/1.447, allocations: 230.6 MB / 257.5 MB, free: 7.805 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.241/0.241, allocations: 46.95 MB / 360.9 MB, free: 4.039 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001994/0.001994, allocations: 67.88 kB / 0.4961 GB, free: 7.746 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3187/0.3207, allocations: 66.04 MB / 0.5606 GB, free: 4.227 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001646/0.3223, allocations: 468 kB / 0.561 GB, free: 3.77 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003837/0.3262, allocations: 2.295 MB / 0.5633 GB, free: 1.457 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.793e-05/0.3262, allocations: 4 kB / 0.5633 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.154e-05/0.3262, allocations: 0 / 0.5633 GB, free: 1.453 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.184e-06/0.3262, allocations: 0 / 0.5633 GB, free: 1.453 MB / 398.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.003623/0.3298, allocations: 1.098 MB / 0.5643 GB, free: 364 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 8.94e-05/0.3299, allocations: 4 kB / 0.5643 GB, free: 360 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.8e-05/0.33, allocations: 3.938 kB / 0.5643 GB, free: 356 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.486e-05/0.33, allocations: 8 kB / 0.5643 GB, free: 348 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.624e-05/0.3301, allocations: 3.938 kB / 0.5643 GB, free: 344 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.283e-06/0.3301, allocations: 0 / 0.5643 GB, free: 344 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.3321, allocations: 0.999 MB / 0.5653 GB, free: 15.34 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.664e-05/0.3321, allocations: 3.984 kB / 0.5653 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 3.286e-05/0.3322, allocations: 0 / 0.5653 GB, free: 15.33 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007137/0.3329, allocations: 440.9 kB / 0.5657 GB, free: 14.9 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3329, allocations: 0 / 0.5657 GB, free: 14.9 MB / 414.1 MB Notification: Performance of FrontEnd: time 3.938e-06/0.3329, allocations: 3.984 kB / 0.5658 GB, free: 14.9 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.3329, allocations: 0 / 0.5658 GB, free: 14.9 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.0005264/0.3334, allocations: 371.2 kB / 0.5661 GB, free: 14.5 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.652e-05/0.3335, allocations: 8.031 kB / 0.5661 GB, free: 14.49 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.766e-05/0.3335, allocations: 30.75 kB / 0.5661 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.454e-05/0.3336, allocations: 4.938 kB / 0.5661 GB, free: 14.45 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.848e-05/0.3337, allocations: 106.5 kB / 0.5662 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.466e-05/0.3337, allocations: 384 / 0.5663 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.265e-06/0.3337, allocations: 384 / 0.5663 GB, free: 14.32 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001388/0.3338, allocations: 59.53 kB / 0.5663 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.127e-06/0.3338, allocations: 0 / 0.5663 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.786e-06/0.3338, allocations: 0 / 0.5663 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3338, allocations: 4 kB / 0.5663 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.452e-05/0.3339, allocations: 41.56 kB / 0.5664 GB, free: 14.2 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000145/0.334, allocations: 112.8 kB / 0.5665 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.516e-05/0.3341, allocations: 48.31 kB / 0.5665 GB, free: 13.98 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.078e-05/0.3342, allocations: 34.56 kB / 0.5665 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.097e-06/0.3342, allocations: 0 / 0.5665 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.132e-05/0.3342, allocations: 68.25 kB / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 8.02e-07/0.3342, allocations: 0 / 0.5666 GB, free: 13.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0002478/0.3345, allocations: 118.8 kB / 0.5667 GB, free: 13.72 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.797e-05/0.3345, allocations: 77.11 kB / 0.5668 GB, free: 13.62 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.282e-05/0.3346, allocations: 101.9 kB / 0.5669 GB, free: 13.52 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/0.3346, allocations: 25.7 kB / 0.5669 GB, free: 13.48 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.666e-05/0.3347, allocations: 84.12 kB / 0.567 GB, free: 13.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.3347, allocations: 4 kB / 0.567 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.3347, allocations: 9.719 kB / 0.567 GB, free: 13.38 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001527/0.3349, allocations: 318.8 kB / 0.5673 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.502e-05/0.3349, allocations: 25.7 kB / 0.5673 GB, free: 13.03 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.996e-05/0.3349, allocations: 25.7 kB / 0.5674 GB, free: 13 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.515e-05/0.335, allocations: 60.27 kB / 0.5674 GB, free: 12.92 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.335, allocations: 4.062 kB / 0.5674 GB, free: 12.92 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 0.0001036/0.3351, allocations: 101 kB / 0.5675 GB, free: 12.8 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.3351, allocations: 33.64 kB / 0.5675 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.3351, allocations: 0 / 0.5675 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.464e-05/0.3352, allocations: 4 kB / 0.5676 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.012e-06/0.3352, allocations: 0 / 0.5676 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/0.3352, allocations: 0 / 0.5676 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.466e-05/0.3352, allocations: 0 / 0.5676 GB, free: 12.76 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.3352, allocations: 0 / 0.5676 GB, free: 12.76 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.0001022/0.3353, allocations: 139.5 kB / 0.5677 GB, free: 12.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-06/0.3353, allocations: 7.969 kB / 0.5677 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.122e-05/0.3353, allocations: 3 kB / 0.5677 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.262e-06/0.3353, allocations: 0 / 0.5677 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3353, allocations: 0 / 0.5677 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3353, allocations: 4 kB / 0.5677 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.3354, allocations: 116.8 kB / 0.5678 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.22e-07/0.3354, allocations: 0 / 0.5678 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.31e-07/0.3354, allocations: 0 / 0.5678 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.357e-06/0.3354, allocations: 7.875 kB / 0.5678 GB, free: 12.43 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.3354, allocations: 4 kB / 0.5678 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.42e-07/0.3354, allocations: 0 / 0.5678 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3354, allocations: 4 kB / 0.5678 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001425/0.3356, allocations: 128.5 kB / 0.5679 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.873e-06/0.3356, allocations: 3.938 kB / 0.568 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.213e-05/0.3356, allocations: 0 / 0.568 GB, free: 12.26 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.134e-05/0.3356, allocations: 4 kB / 0.568 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.064e-05/0.3356, allocations: 0 / 0.568 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-06/0.3356, allocations: 0 / 0.568 GB, free: 12.25 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.726e-05/0.3357, allocations: 75.28 kB / 0.568 GB, free: 12.18 MB / 414.1 MB Notification: Performance of sort global known variables: time 5e-08/0.3357, allocations: 0 / 0.568 GB, free: 12.18 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004894/0.3362, allocations: 159.5 kB / 0.5682 GB, free: 12.02 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.001225/0.3374, allocations: 0.9454 MB / 0.5691 GB, free: 11.04 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001688/0.3376, allocations: 110.8 kB / 0.5692 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3376, allocations: 0 / 0.5692 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 6.14e-05/0.3376, allocations: 89.09 kB / 0.5693 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001393/0.3378, allocations: 6.5 kB / 0.5693 GB, free: 10.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000502/0.3383, allocations: 207.9 kB / 0.5695 GB, free: 10.55 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.939e-05/0.3383, allocations: 55.36 kB / 0.5695 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.112e-06/0.3383, allocations: 0 / 0.5695 GB, free: 10.47 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.122e-05/0.3383, allocations: 7.438 kB / 0.5696 GB, free: 10.46 MB / 414.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3383, allocations: 0 / 0.5696 GB, free: 10.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03474/0.3731, allocations: 6.219 MB / 0.5756 GB, free: 4.371 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.33/11.7, allocations: 7.984 kB / 0.5756 GB, free: 4.363 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.54190217400901]