Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007827/0.0007827, allocations: 88.92 kB / 17.35 MB, free: 6.027 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007628/0.0007628, allocations: 178.5 kB / 18.26 MB, free: 5.387 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 223.3 MB / 242.3 MB, free: 80 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1933/0.1933, allocations: 44.25 MB / 337.7 MB, free: 2.641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002838/0.0002839, allocations: 8 kB / 410.4 MB, free: 27.2 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09106/0.09136, allocations: 61.92 MB / 472.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0004662/0.09186, allocations: 199 kB / 472.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00295/0.09483, allocations: 2.305 MB / 474.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.074e-05/0.09486, allocations: 4 kB / 474.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.293e-05/0.09488, allocations: 3.938 kB / 474.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.278e-06/0.09489, allocations: 0 / 474.9 MB, free: 10.73 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.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.002251/0.09715, allocations: 1.004 MB / 475.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 3.248e-05/0.09719, allocations: 4 kB / 475.9 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.702e-05/0.09723, allocations: 0 / 475.9 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.458e-05/0.09725, allocations: 0 / 475.9 MB, free: 9.719 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.953e-05/0.09728, allocations: 4 kB / 475.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.256e-06/0.09729, allocations: 3.984 kB / 475.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001478/0.09877, allocations: 0.9599 MB / 476.8 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.023e-06/0.09879, allocations: 0 / 476.8 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.254e-05/0.09883, allocations: 29.7 kB / 476.9 MB, free: 8.715 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006362/0.09948, allocations: 415.3 kB / 477.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.795e-06/0.09949, allocations: 0 / 477.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.0995, allocations: 0 / 477.3 MB, free: 8.309 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.436e-06/0.0995, allocations: 7.938 kB / 477.3 MB, free: 8.301 MB / 350.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.000372/0.09988, allocations: 429.2 kB / 477.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.78e-05/0.09993, allocations: 12.03 kB / 477.7 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.193e-05/0.09996, allocations: 30.75 kB / 477.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.034e-05/0.09999, allocations: 0.9375 kB / 477.7 MB, free: 7.777 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.858e-05/0.1001, allocations: 164.4 kB / 477.9 MB, free: 7.578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.215e-06/0.1001, allocations: 4.312 kB / 477.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.422e-06/0.1001, allocations: 384 / 477.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.483e-05/0.1002, allocations: 37.81 kB / 477.9 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.525e-06/0.1002, allocations: 11.94 kB / 477.9 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-06/0.1002, allocations: 0 / 477.9 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.082e-06/0.1002, allocations: 3.984 kB / 478 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.791e-05/0.1002, allocations: 4 kB / 478 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001085/0.1004, allocations: 149.6 kB / 478.1 MB, free: 7.316 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.302e-05/0.1004, allocations: 18.56 kB / 478.1 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.524e-05/0.1004, allocations: 8.953 kB / 478.1 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.822e-06/0.1004, allocations: 0 / 478.1 MB, free: 7.277 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.503e-05/0.1005, allocations: 64.2 kB / 478.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 7.82e-07/0.1005, allocations: 0 / 478.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001426/0.1006, allocations: 67.34 kB / 478.3 MB, free: 7.121 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.19e-05/0.1007, allocations: 81.09 kB / 478.3 MB, free: 7.023 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.036e-05/0.1007, allocations: 89.86 kB / 478.4 MB, free: 6.926 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.09e-05/0.1007, allocations: 25.7 kB / 478.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.112e-05/0.1008, allocations: 84.14 kB / 478.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.902e-05/0.1008, allocations: 288 / 478.5 MB, free: 6.809 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.969e-05/0.1008, allocations: 13.84 kB / 478.5 MB, free: 6.789 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.55e-05/0.1009, allocations: 310.8 kB / 478.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.346e-06/0.1009, allocations: 0 / 478.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.131e-06/0.1009, allocations: 4 kB / 478.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.974e-05/0.101, allocations: 60.27 kB / 478.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.101, allocations: 0 / 478.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.772e-05/0.1011, allocations: 67.33 kB / 479 MB, free: 6.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.1011, allocations: 37.73 kB / 479 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.288e-06/0.1011, allocations: 4 kB / 479 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.124e-05/0.1011, allocations: 0 / 479 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.1011, allocations: 0 / 479 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.657e-06/0.1012, allocations: 0 / 479 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.156e-05/0.1012, allocations: 3.938 kB / 479 MB, free: 6.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.1012, allocations: 0 / 479 MB, free: 6.27 MB / 350.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 7.452e-05/0.1013, allocations: 139.5 kB / 479.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.044e-05/0.1013, allocations: 11.84 kB / 479.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.728e-06/0.1013, allocations: 7.078 kB / 479.2 MB, free: 6.098 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.1013, allocations: 4 kB / 479.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1013, allocations: 4 kB / 479.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.1013, allocations: 0 / 479.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.794e-05/0.1014, allocations: 149.6 kB / 479.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.1014, allocations: 0 / 479.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.1014, allocations: 0 / 479.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.896e-06/0.1014, allocations: 7.875 kB / 479.3 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.262e-06/0.1014, allocations: 4 kB / 479.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1014, allocations: 0 / 479.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1014, allocations: 0 / 479.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.417e-05/0.1015, allocations: 94.77 kB / 479.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.291e-05/0.1016, allocations: 85.05 kB / 479.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.1016, allocations: 0 / 479.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.015e-06/0.1016, allocations: 0 / 479.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.108e-05/0.1016, allocations: 0 / 479.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.1016, allocations: 3.984 kB / 479.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.072e-05/0.1017, allocations: 79.28 kB / 479.6 MB, free: 5.582 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1017, allocations: 4.031 kB / 479.6 MB, free: 5.578 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003989/0.1021, allocations: 136 kB / 479.7 MB, free: 5.445 MB / 350.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.0008651/0.1029, allocations: 0.8843 MB / 480.6 MB, free: 4.535 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 7.507e-05/0.103, allocations: 63.33 kB / 480.7 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.103, allocations: 0 / 480.7 MB, free: 4.461 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 2.563e-05/0.1031, allocations: 55.41 kB / 480.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000114/0.1032, allocations: 128 / 480.7 MB, free: 4.395 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003176/0.1035, allocations: 172.3 kB / 480.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001922/0.1037, allocations: 0.6731 MB / 481.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.789e-06/0.1037, allocations: 0 / 481.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.312e-05/0.1037, allocations: 11.44 kB / 481.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of SimCode: time 2e-07/0.1038, allocations: 0 / 481.6 MB, free: 3.473 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.198/0.3017, allocations: 5.1 MB / 486.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002324/0.302, allocations: 246.3 kB / 486.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.168, allocations: 0 / 486.9 MB, free: 14.23 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches