Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.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.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions",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.001384/0.001384, allocations: 101.5 kB / 16.27 MB, free: 5.953 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.001282/0.001282, allocations: 188.2 kB / 17.19 MB, free: 5.594 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.348/1.348, allocations: 205.1 MB / 223.1 MB, free: 12.3 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.202/0.202, allocations: 43.52 MB / 313.9 MB, free: 0.5312 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.001528/0.001528, allocations: 64.72 kB / 382.8 MB, free: 56.71 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09568/0.09722, allocations: 57.8 MB / 440.6 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001765/0.09903, allocations: 477.4 kB / 441.1 MB, free: 6.348 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002557/0.1016, allocations: 2.312 MB / 443.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.443e-05/0.1017, allocations: 0 / 443.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 1.46e-05/0.1017, allocations: 0 / 443.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 6.933e-06/0.1017, allocations: 0 / 443.4 MB, free: 4.016 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002185/0.1039, allocations: 1.129 MB / 444.5 MB, free: 2.887 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 4.827e-05/0.104, allocations: 4 kB / 444.5 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.689e-05/0.104, allocations: 3.938 kB / 444.5 MB, free: 2.879 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.633e-05/0.104, allocations: 4 kB / 444.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.198e-05/0.104, allocations: 3.938 kB / 444.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.841e-06/0.1041, allocations: 0 / 444.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001123/0.1052, allocations: 0.96 MB / 445.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.997e-06/0.1052, allocations: 0 / 445.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 1.881e-05/0.1052, allocations: 0 / 445.5 MB, free: 1.91 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004576/0.1057, allocations: 427.3 kB / 445.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1057, allocations: 0 / 445.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.1057, allocations: 0 / 445.9 MB, free: 1.492 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.1057, allocations: 0 / 445.9 MB, free: 1.492 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.0003583/0.1061, allocations: 441.3 kB / 446.3 MB, free: 1.008 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.071e-05/0.1061, allocations: 11.89 kB / 446.4 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.681e-05/0.1062, allocations: 34.75 kB / 446.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.715e-05/0.1062, allocations: 0.9375 kB / 446.4 MB, free: 0.9531 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 6.455e-05/0.1063, allocations: 160.4 kB / 446.5 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.1063, allocations: 4.375 kB / 446.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.023e-05/0.1063, allocations: 4.375 kB / 446.6 MB, free: 0.75 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.698e-05/0.1064, allocations: 33.81 kB / 446.6 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.563e-06/0.1064, allocations: 3.938 kB / 446.6 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.253e-06/0.1064, allocations: 0 / 446.6 MB, free: 0.707 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.1064, allocations: 4 kB / 446.6 MB, free: 0.7031 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.716e-05/0.1064, allocations: 3.938 kB / 446.6 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 8.289e-05/0.1065, allocations: 141.7 kB / 446.7 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.592e-05/0.1066, allocations: 30.59 kB / 446.8 MB, free: 484 kB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.172e-05/0.1066, allocations: 8.844 kB / 446.8 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.643e-06/0.1066, allocations: 0 / 446.8 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.1066, allocations: 64.2 kB / 446.8 MB, free: 392 kB / 318.1 MB Notification: Performance of pre-optimization done (n=1): time 8.01e-07/0.1067, allocations: 0 / 446.8 MB, free: 392 kB / 318.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001384/0.1068, allocations: 63.41 kB / 446.9 MB, free: 316 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.1068, allocations: 85.09 kB / 447 MB, free: 212 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.885e-05/0.1069, allocations: 97.98 kB / 447.1 MB, free: 104 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.131e-06/0.1069, allocations: 25.7 kB / 447.1 MB, free: 72 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.702e-05/0.1069, allocations: 80.14 kB / 447.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.547e-05/0.1069, allocations: 0 / 447.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.591e-05/0.107, allocations: 13.72 kB / 447.2 MB, free: 15.97 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001087/0.1071, allocations: 314.8 kB / 447.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.879e-06/0.1071, allocations: 0 / 447.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.38e-06/0.1071, allocations: 0 / 447.5 MB, free: 15.65 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.344e-05/0.1072, allocations: 68.33 kB / 447.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.1072, allocations: 0 / 447.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.978e-05/0.1072, allocations: 67.33 kB / 447.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.297e-05/0.1073, allocations: 33.64 kB / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.1073, allocations: 3.984 kB / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.1073, allocations: 4 kB / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.41e-07/0.1073, allocations: 0 / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.1073, allocations: 0 / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.46e-05/0.1073, allocations: 0 / 447.7 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.393e-06/0.1074, 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 8.681e-05/0.1075, allocations: 148.6 kB / 447.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.337e-06/0.1075, allocations: 3.938 kB / 447.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.043e-05/0.1075, allocations: 3.125 kB / 447.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-06/0.1075, allocations: 0 / 447.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.1075, allocations: 0 / 447.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.335e-06/0.1075, allocations: 0 / 447.8 MB, free: 15.28 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.1076, allocations: 153.7 kB / 448 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1076, allocations: 0 / 448 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.11e-07/0.1076, allocations: 0 / 448 MB, free: 15.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.316e-06/0.1076, allocations: 7.938 kB / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.861e-06/0.1077, allocations: 0 / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-06/0.1077, allocations: 0 / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1077, allocations: 3.938 kB / 448 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.326e-05/0.1078, allocations: 94.77 kB / 448.1 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.33e-05/0.1078, allocations: 81.05 kB / 448.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.57e-05/0.1078, allocations: 4 kB / 448.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.767e-06/0.1079, allocations: 0 / 448.2 MB, free: 14.85 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.346e-05/0.1079, allocations: 4.031 kB / 448.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.344e-06/0.1079, allocations: 0 / 448.2 MB, free: 14.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 2.83e-05/0.1079, allocations: 75.28 kB / 448.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1079, allocations: 0 / 448.2 MB, free: 14.77 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004239/0.1083, allocations: 140 kB / 448.4 MB, free: 14.63 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.001009/0.1094, allocations: 0.8911 MB / 449.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001023/0.1095, allocations: 55.41 kB / 449.3 MB, free: 13.65 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.1095, allocations: 4.062 kB / 449.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 4.574e-05/0.1095, 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.0001335/0.1097, allocations: 6.969 kB / 449.4 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003777/0.1101, 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.0002578/0.1103, allocations: 0.6729 MB / 450.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.635e-06/0.1103, allocations: 3.984 kB / 450.2 MB, free: 12.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.484e-05/0.1104, allocations: 7.438 kB / 450.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1104, allocations: 3.938 kB / 450.3 MB, free: 12.65 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02538/0.1358, allocations: 5.291 MB / 455.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.865/9.001, allocations: 8 kB / 455.6 MB, free: 7.352 MB / 334.1 MB (rm -f ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches