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.0007962/0.0007962, allocations: 97.72 kB / 16.02 MB, free: 84 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008639/0.0008641, allocations: 185.4 kB / 16.92 MB, free: 6.934 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.427/1.427, allocations: 205.4 MB / 223.1 MB, free: 5.512 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3281/0.3281, allocations: 43.58 MB / 315 MB, free: 9.059 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.0004847/0.0004849, allocations: 12 kB / 384.7 MB, free: 7.781 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1102/0.1107, allocations: 58.87 MB / 443.5 MB, free: 12.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0006363/0.1114, allocations: 212.4 kB / 443.7 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003211/0.1146, allocations: 2.327 MB / 446.1 MB, free: 10.26 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.3e-05/0.1146, allocations: 4 kB / 446.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.498e-05/0.1146, allocations: 4 kB / 446.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.591e-06/0.1146, allocations: 0 / 446.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002428/0.1171, allocations: 1.009 MB / 447.1 MB, free: 9.238 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.398e-05/0.1171, allocations: 11.94 kB / 447.1 MB, free: 9.227 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.873e-05/0.1172, allocations: 11.92 kB / 447.1 MB, free: 9.215 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.678e-05/0.1172, allocations: 0 / 447.1 MB, free: 9.215 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.194e-05/0.1172, allocations: 0 / 447.1 MB, free: 9.215 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.201e-06/0.1172, allocations: 0 / 447.1 MB, free: 9.215 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001381/0.1186, allocations: 0.9639 MB / 448.1 MB, free: 8.25 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.256e-06/0.1186, allocations: 0 / 448.1 MB, free: 8.25 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 3.306e-05/0.1187, allocations: 29.7 kB / 448.1 MB, free: 8.215 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005268/0.1192, allocations: 411.3 kB / 448.5 MB, free: 7.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.1192, allocations: 4 kB / 448.5 MB, free: 7.809 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1192, allocations: 0 / 448.5 MB, free: 7.809 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.1193, allocations: 4 kB / 448.5 MB, free: 7.805 MB / 382.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.0003929/0.1197, allocations: 425.5 kB / 448.9 MB, free: 7.336 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.11e-05/0.1197, allocations: 12.03 kB / 448.9 MB, free: 7.324 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.937e-05/0.1197, allocations: 30.75 kB / 449 MB, free: 7.285 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.252e-05/0.1198, allocations: 4.844 kB / 449 MB, free: 7.281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.315e-05/0.1199, allocations: 160.4 kB / 449.1 MB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.1199, allocations: 384 / 449.1 MB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-06/0.1199, allocations: 384 / 449.1 MB, free: 7.086 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.719e-05/0.12, allocations: 37.83 kB / 449.2 MB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.086e-06/0.12, allocations: 0 / 449.2 MB, free: 7.043 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.626e-06/0.12, allocations: 3.984 kB / 449.2 MB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.73e-06/0.12, allocations: 0 / 449.2 MB, free: 7.039 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.714e-05/0.12, allocations: 7.938 kB / 449.2 MB, free: 7.031 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000124/0.1202, allocations: 149.6 kB / 449.3 MB, free: 6.836 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.73e-05/0.1202, allocations: 14.58 kB / 449.3 MB, free: 6.812 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.42e-05/0.1202, allocations: 12.95 kB / 449.4 MB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.634e-06/0.1202, allocations: 0 / 449.4 MB, free: 6.797 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.035e-05/0.1203, allocations: 64.14 kB / 449.4 MB, free: 6.719 MB / 382.1 MB Notification: Performance of pre-optimization done (n=1): time 8.12e-07/0.1203, allocations: 0 / 449.4 MB, free: 6.719 MB / 382.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001594/0.1205, allocations: 71.33 kB / 449.5 MB, free: 6.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.1205, allocations: 81.05 kB / 449.6 MB, free: 6.539 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.546e-05/0.1206, allocations: 89.86 kB / 449.7 MB, free: 6.441 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.728e-06/0.1206, allocations: 25.83 kB / 449.7 MB, free: 6.41 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.26e-05/0.1206, allocations: 88.14 kB / 449.8 MB, free: 6.32 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.434e-05/0.1206, allocations: 0 / 449.8 MB, free: 6.32 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.189e-05/0.1206, allocations: 9.719 kB / 449.8 MB, free: 6.305 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 9.214e-05/0.1207, allocations: 314.8 kB / 450.1 MB, free: 5.988 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.518e-06/0.1208, allocations: 4 kB / 450.1 MB, free: 5.984 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.52e-06/0.1208, allocations: 4 kB / 450.1 MB, free: 5.98 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.122e-05/0.1208, allocations: 56.27 kB / 450.1 MB, free: 5.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1208, allocations: 8 kB / 450.2 MB, free: 5.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.961e-05/0.1209, allocations: 59.41 kB / 450.2 MB, free: 5.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.1209, allocations: 41.62 kB / 450.3 MB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.1209, allocations: 0 / 450.3 MB, free: 5.785 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.341e-05/0.121, allocations: 4 kB / 450.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.52e-07/0.121, allocations: 0 / 450.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.048e-06/0.121, allocations: 0 / 450.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.429e-05/0.121, allocations: 0 / 450.3 MB, free: 5.781 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.121, allocations: 0 / 450.3 MB, free: 5.781 MB / 382.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.738e-05/0.1211, allocations: 143.6 kB / 450.4 MB, free: 5.625 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.737e-06/0.1211, allocations: 3.938 kB / 450.4 MB, free: 5.621 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.012e-05/0.1211, allocations: 3.125 kB / 450.4 MB, free: 5.617 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.477e-06/0.1211, allocations: 7.969 kB / 450.4 MB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.1211, allocations: 0 / 450.4 MB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.455e-06/0.1211, allocations: 4 kB / 450.4 MB, free: 5.605 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.77e-05/0.1212, allocations: 141.7 kB / 450.6 MB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.31e-07/0.1212, allocations: 0 / 450.6 MB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.31e-07/0.1212, allocations: 0 / 450.6 MB, free: 5.418 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.855e-06/0.1212, allocations: 3.938 kB / 450.6 MB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.1212, allocations: 0 / 450.6 MB, free: 5.414 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.1213, allocations: 8 kB / 450.6 MB, free: 5.406 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.014e-06/0.1213, allocations: 3.938 kB / 450.6 MB, free: 5.402 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.386e-05/0.1213, allocations: 86.83 kB / 450.7 MB, free: 5.293 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.441e-05/0.1214, allocations: 85.05 kB / 450.7 MB, free: 5.191 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.215e-05/0.1214, allocations: 3.984 kB / 450.7 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.718e-06/0.1214, allocations: 0 / 450.7 MB, free: 5.188 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.363e-05/0.1214, allocations: 3.938 kB / 450.7 MB, free: 5.184 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.665e-06/0.1214, allocations: 4.031 kB / 450.7 MB, free: 5.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 2.303e-05/0.1215, allocations: 79.28 kB / 450.8 MB, free: 5.102 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1215, allocations: 3.938 kB / 450.8 MB, free: 5.098 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0004099/0.1219, allocations: 136 kB / 451 MB, free: 4.965 MB / 382.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.0008776/0.1228, allocations: 0.8907 MB / 451.9 MB, free: 4.043 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 8.276e-05/0.1229, allocations: 55.41 kB / 451.9 MB, free: 3.977 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.1229, allocations: 0 / 451.9 MB, free: 3.977 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 2.963e-05/0.1229, allocations: 67.45 kB / 452 MB, free: 3.898 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001201/0.123, allocations: 3.438 kB / 452 MB, free: 3.898 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003357/0.1234, allocations: 176.3 kB / 452.1 MB, free: 3.688 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001947/0.1236, allocations: 0.6692 MB / 452.8 MB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 4.98e-06/0.1236, allocations: 0 / 452.8 MB, free: 2.992 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.324e-05/0.1236, allocations: 11.44 kB / 452.8 MB, free: 2.98 MB / 382.1 MB Notification: Performance of SimCode: time 1.593e-06/0.1236, allocations: 0 / 452.8 MB, free: 2.98 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6681/0.7917, allocations: 5.083 MB / 457.9 MB, free: 43.01 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001761/0.7919, allocations: 237.5 kB / 458.1 MB, free: 42.76 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.467/4.259, allocations: 2.297 kB / 458.1 MB, free: 42.76 MB / 382.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","../files/ModelicaTest_3.2.3_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches