Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_3_2_3_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.001332/0.001332, allocations: 102.8 kB / 16.27 MB, free: 5.969 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.001183/0.001183, allocations: 190 kB / 17.19 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 205.1 MB / 223.1 MB, free: 12.28 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1996/0.1996, allocations: 43.52 MB / 313.9 MB, free: 0.5391 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001766, allocations: 63.62 kB / 382.8 MB, free: 56.67 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08757/0.08935, allocations: 57.79 MB / 440.6 MB, free: 6.824 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001639/0.09104, allocations: 477.4 kB / 441.1 MB, free: 6.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002451/0.09352, allocations: 2.312 MB / 443.4 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.32e-05/0.09356, allocations: 3.938 kB / 443.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.0936, allocations: 0 / 443.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.08e-06/0.09361, allocations: 3.938 kB / 443.4 MB, free: 4.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002356/0.09597, allocations: 1.132 MB / 444.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.655e-05/0.09603, allocations: 4 kB / 444.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.793e-05/0.09607, allocations: 0 / 444.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.565e-05/0.09609, allocations: 3.938 kB / 444.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.821e-05/0.09612, allocations: 3.984 kB / 444.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.45e-06/0.09613, allocations: 0 / 444.5 MB, free: 2.867 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001229/0.09736, allocations: 0.9639 MB / 445.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.955e-06/0.09739, allocations: 0 / 445.5 MB, free: 1.902 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.819e-05/0.09741, allocations: 4 kB / 445.5 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005504/0.09797, allocations: 419.3 kB / 445.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.09798, allocations: 0 / 445.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.09799, allocations: 0 / 445.9 MB, free: 1.488 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.098, allocations: 4 kB / 445.9 MB, free: 1.484 MB / 318.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.0003208/0.09833, allocations: 437.3 kB / 446.3 MB, free: 1.004 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.09837, allocations: 11.89 kB / 446.4 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.351e-05/0.0984, allocations: 30.75 kB / 446.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.042e-05/0.09842, allocations: 4.938 kB / 446.4 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 4.611e-05/0.09847, allocations: 168.4 kB / 446.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.007e-05/0.09849, allocations: 4.375 kB / 446.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.4e-06/0.0985, allocations: 384 / 446.6 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.626e-05/0.09857, allocations: 33.77 kB / 446.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.402e-06/0.09858, allocations: 0 / 446.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.09859, allocations: 4 kB / 446.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.268e-06/0.0986, allocations: 0 / 446.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.679e-05/0.09862, allocations: 3.938 kB / 446.6 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 7.876e-05/0.09871, allocations: 145.7 kB / 446.7 MB, free: 0.5039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.183e-05/0.09875, allocations: 26.59 kB / 446.8 MB, free: 480 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.09e-05/0.09876, allocations: 4.859 kB / 446.8 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.467e-06/0.09878, allocations: 0 / 446.8 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.6e-05/0.09881, allocations: 60.2 kB / 446.8 MB, free: 396 kB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.72e-07/0.09882, allocations: 4.062 kB / 446.8 MB, free: 392 kB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.000138/0.09896, allocations: 63.45 kB / 446.9 MB, free: 316 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.664e-05/0.099, allocations: 85.11 kB / 447 MB, free: 212 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.669e-05/0.09902, allocations: 93.86 kB / 447.1 MB, free: 108 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.283e-06/0.09903, allocations: 25.7 kB / 447.1 MB, free: 76 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.433e-05/0.09907, allocations: 84.08 kB / 447.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.0991, allocations: 0 / 447.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.078e-05/0.09912, allocations: 13.72 kB / 447.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001281/0.09926, allocations: 310.8 kB / 447.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.008e-05/0.09927, allocations: 0 / 447.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.282e-06/0.09929, allocations: 4 kB / 447.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.107e-05/0.09936, allocations: 68.25 kB / 447.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.09937, allocations: 3.938 kB / 447.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.66e-05/0.09947, allocations: 59.41 kB / 447.6 MB, free: 15.5 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.376e-05/0.09952, allocations: 33.64 kB / 447.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.09953, allocations: 3.984 kB / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.366e-05/0.09955, allocations: 4 kB / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.393e-06/0.09955, allocations: 0 / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.09956, allocations: 4.094 kB / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.524e-05/0.09959, allocations: 0 / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.17e-06/0.0996, allocations: 0 / 447.7 MB, free: 15.45 MB / 334.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.129e-05/0.09969, allocations: 143.5 kB / 447.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.159e-05/0.09971, allocations: 3.938 kB / 447.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.318e-05/0.09973, allocations: 3.125 kB / 447.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.132e-06/0.09973, allocations: 0 / 447.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.09974, allocations: 0 / 447.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.584e-06/0.09975, allocations: 0 / 447.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.09987, allocations: 161.7 kB / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.61e-07/0.09988, allocations: 0 / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.505e-06/0.09989, allocations: 4 kB / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.09989, allocations: 3.938 kB / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.113e-06/0.09991, allocations: 0 / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.09991, allocations: 3.938 kB / 448 MB, free: 15.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.007e-06/0.09992, allocations: 7.938 kB / 448 MB, free: 15.05 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.004e-05/0.1, allocations: 86.83 kB / 448.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.706e-05/0.1001, allocations: 85.08 kB / 448.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.1001, allocations: 4 kB / 448.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.382e-05/0.1001, allocations: 0 / 448.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.357e-05/0.1002, allocations: 0 / 448.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.386e-06/0.1002, allocations: 0 / 448.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 3.804e-05/0.1002, allocations: 75.28 kB / 448.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1002, allocations: 3.938 kB / 448.2 MB, free: 14.76 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005678/0.1008, allocations: 140 kB / 448.4 MB, free: 14.62 MB / 334.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.0009611/0.1018, allocations: 0.8874 MB / 449.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001018/0.1019, allocations: 55.41 kB / 449.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1019, allocations: 3.938 kB / 449.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.14e-05/0.1019, allocations: 63.39 kB / 449.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001223/0.1021, allocations: 4 kB / 449.4 MB, free: 13.56 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003749/0.1024, allocations: 166.6 kB / 449.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002834/0.1027, allocations: 0.6767 MB / 450.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.542e-06/0.1028, allocations: 4.125 kB / 450.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.584e-05/0.1028, allocations: 7.438 kB / 450.2 MB, free: 12.64 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1028, allocations: 3.938 kB / 450.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2076/0.3104, allocations: 5.288 MB / 455.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.176/9.487, allocations: 0.875 kB / 455.5 MB, free: 7.359 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches