Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_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 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.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_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.0008701/0.00087, allocations: 93.42 kB / 17.35 MB, free: 6.344 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.0008989/0.000899, allocations: 171.3 kB / 18.25 MB, free: 5.504 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.303/1.303, allocations: 223.3 MB / 242.3 MB, free: 14.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1911/0.1911, allocations: 44.25 MB / 337.7 MB, free: 2.438 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002727/0.0002726, allocations: 8.5 kB / 410.4 MB, free: 27.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1096, allocations: 61.91 MB / 472.3 MB, free: 13.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.0004278/0.11, allocations: 199 kB / 472.5 MB, free: 13.06 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002874/0.1129, allocations: 2.313 MB / 474.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.264e-06/0.1129, allocations: 0 / 474.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.066e-05/0.113, allocations: 0 / 474.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.297e-06/0.113, 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.002003/0.115, allocations: 1.004 MB / 475.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.401e-05/0.115, allocations: 8 kB / 475.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.612e-05/0.115, allocations: 0 / 475.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.059e-05/0.1151, allocations: 0 / 475.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.599e-05/0.1151, allocations: 4 kB / 475.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.629e-06/0.1151, allocations: 0 / 475.9 MB, free: 9.711 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001308/0.1164, allocations: 0.9638 MB / 476.8 MB, free: 8.746 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.046e-05/0.1164, allocations: 4 kB / 476.8 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 3.281e-05/0.1165, allocations: 29.64 kB / 476.9 MB, free: 8.707 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005849/0.1171, allocations: 415.4 kB / 477.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1171, allocations: 0 / 477.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1171, allocations: 0 / 477.3 MB, free: 8.301 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.077e-06/0.1171, allocations: 0 / 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.0003821/0.1175, allocations: 429.2 kB / 477.7 MB, free: 7.828 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.1175, allocations: 12.03 kB / 477.7 MB, free: 7.816 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.741e-05/0.1175, allocations: 34.69 kB / 477.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.774e-05/0.1176, allocations: 0.9375 kB / 477.7 MB, free: 7.773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.504e-05/0.1176, allocations: 164.4 kB / 477.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.795e-06/0.1177, allocations: 384 / 477.9 MB, free: 7.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.993e-06/0.1177, allocations: 4.375 kB / 477.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 6.325e-05/0.1177, allocations: 33.81 kB / 477.9 MB, free: 7.531 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.102e-06/0.1178, allocations: 4 kB / 477.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.512e-06/0.1178, allocations: 3.938 kB / 477.9 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.02e-06/0.1178, allocations: 3.984 kB / 477.9 MB, free: 7.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.386e-05/0.1178, allocations: 4 kB / 478 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000104/0.1179, allocations: 145.7 kB / 478.1 MB, free: 7.324 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.135e-05/0.1179, allocations: 22.55 kB / 478.1 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.297e-05/0.118, allocations: 4.859 kB / 478.1 MB, free: 7.285 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-06/0.118, allocations: 3.984 kB / 478.1 MB, free: 7.281 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.676e-05/0.118, allocations: 64.2 kB / 478.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.118, allocations: 0 / 478.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001313/0.1182, allocations: 63.47 kB / 478.2 MB, free: 7.129 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.013e-05/0.1182, allocations: 81.05 kB / 478.3 MB, free: 7.031 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.737e-05/0.1182, allocations: 93.86 kB / 478.4 MB, free: 6.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.148e-05/0.1183, allocations: 29.69 kB / 478.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.352e-05/0.1183, allocations: 80.14 kB / 478.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.1183, allocations: 416 / 478.5 MB, free: 6.812 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.252e-05/0.1183, allocations: 13.72 kB / 478.5 MB, free: 6.793 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.24e-05/0.1184, allocations: 310.8 kB / 478.8 MB, free: 6.48 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.406e-06/0.1184, allocations: 4 kB / 478.8 MB, free: 6.477 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.098e-06/0.1184, allocations: 4 kB / 478.9 MB, free: 6.473 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.835e-05/0.1185, allocations: 60.27 kB / 478.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.1185, allocations: 0 / 478.9 MB, free: 6.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.069e-05/0.1186, allocations: 59.39 kB / 479 MB, free: 6.328 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.654e-05/0.1186, allocations: 45.67 kB / 479 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.537e-06/0.1186, allocations: 0 / 479 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.476e-06/0.1186, allocations: 0 / 479 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.42e-07/0.1186, allocations: 0 / 479 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.918e-06/0.1186, allocations: 0 / 479 MB, free: 6.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.421e-05/0.1186, allocations: 3.938 kB / 479 MB, free: 6.273 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.562e-06/0.1187, allocations: 7.938 kB / 479 MB, free: 6.266 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 6.578e-05/0.1187, allocations: 135.5 kB / 479.2 MB, free: 6.117 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.026e-05/0.1187, allocations: 11.83 kB / 479.2 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.137e-05/0.1188, allocations: 11.08 kB / 479.2 MB, free: 6.094 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1188, allocations: 4 kB / 479.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.056e-06/0.1188, allocations: 0 / 479.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-06/0.1188, allocations: 0 / 479.2 MB, free: 6.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.546e-05/0.1189, allocations: 141.7 kB / 479.3 MB, free: 5.902 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.1189, allocations: 7.938 kB / 479.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.51e-07/0.1189, allocations: 0 / 479.3 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.138e-06/0.1189, allocations: 7.938 kB / 479.3 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.1189, allocations: 3.984 kB / 479.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.71e-07/0.1189, allocations: 0 / 479.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1189, allocations: 0 / 479.3 MB, free: 5.883 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.158e-05/0.119, allocations: 94.78 kB / 479.4 MB, free: 5.766 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.773e-05/0.119, allocations: 85.03 kB / 479.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.879e-06/0.119, allocations: 0 / 479.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.035e-06/0.1191, allocations: 0 / 479.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.808e-06/0.1191, allocations: 0 / 479.5 MB, free: 5.664 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.575e-06/0.1191, allocations: 4 kB / 479.5 MB, free: 5.66 MB / 350.1 MB Notification: Performance of sorting global known variables: time 2.413e-05/0.1191, allocations: 75.28 kB / 479.6 MB, free: 5.586 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1191, allocations: 4.031 kB / 479.6 MB, free: 5.582 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003845/0.1195, allocations: 140 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.0007826/0.1203, allocations: 0.8805 MB / 480.6 MB, free: 4.539 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 6.447e-05/0.1204, allocations: 59.34 kB / 480.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.1204, allocations: 0 / 480.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 3.227e-05/0.1204, allocations: 63.39 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.0001122/0.1205, allocations: 10.88 kB / 480.7 MB, free: 4.387 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003021/0.1208, allocations: 164.3 kB / 480.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001756/0.121, allocations: 0.6692 MB / 481.6 MB, free: 3.488 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.364e-06/0.121, allocations: 4 kB / 481.6 MB, free: 3.484 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.101e-05/0.121, allocations: 7.438 kB / 481.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of SimCode: time 2.11e-07/0.1211, allocations: 0 / 481.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2477/0.3688, allocations: 5.099 MB / 486.7 MB, free: 14.49 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003488/0.3692, allocations: 249 kB / 486.9 MB, free: 14.23 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.817/2.186, allocations: 0 / 486.9 MB, free: 14.23 MB / 366.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches