Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001228/0.001228, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00164/0.00164, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.396/1.396, allocations: 227.4 MB / 246.8 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2163/0.2163, allocations: 46.1 MB / 344.1 MB, free: 11.58 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 78.69 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1093, allocations: 62.44 MB / 480.1 MB, free: 5.184 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.002138/0.1115, allocations: 471.8 kB / 480.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003953/0.1155, allocations: 2.407 MB / 483 MB, free: 2.293 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.348e-05/0.1156, allocations: 7.875 kB / 483 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.02e-05/0.1156, allocations: 0 / 483 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.063e-06/0.1156, allocations: 0 / 483 MB, free: 2.285 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/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.003346/0.119, allocations: 1.144 MB / 484.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 6.045e-05/0.1191, allocations: 0 / 484.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 5.57e-05/0.1191, allocations: 0 / 484.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.644e-05/0.1192, allocations: 4 kB / 484.1 MB, free: 1.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.908e-05/0.1192, allocations: 3.938 kB / 484.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.301e-06/0.1192, allocations: 0 / 484.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.1215, allocations: 1.018 MB / 485.2 MB, free: 112 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.618e-06/0.1215, allocations: 0 / 485.2 MB, free: 112 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.737e-05/0.1215, allocations: 0 / 485.2 MB, free: 112 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009525/0.1225, allocations: 443.4 kB / 485.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1225, allocations: 0 / 485.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.1225, allocations: 0 / 485.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1225, allocations: 4 kB / 485.6 MB, free: 15.67 MB / 366.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.0006331/0.1232, allocations: 441.4 kB / 486 MB, free: 15.19 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.106e-05/0.1232, allocations: 12.03 kB / 486 MB, free: 15.18 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.149e-05/0.1233, allocations: 38.73 kB / 486.1 MB, free: 15.13 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.722e-05/0.1233, allocations: 4.875 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.755e-05/0.1234, allocations: 168.3 kB / 486.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.1234, allocations: 384 / 486.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.856e-06/0.1234, allocations: 384 / 486.2 MB, free: 14.92 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.341e-05/0.1235, allocations: 33.83 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.34e-06/0.1235, allocations: 0 / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.486e-06/0.1235, allocations: 0 / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.409e-06/0.1235, allocations: 0 / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.112e-05/0.1236, allocations: 4 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001454/0.1237, allocations: 153.7 kB / 486.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.172e-05/0.1238, allocations: 22.45 kB / 486.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.806e-05/0.1238, allocations: 12.95 kB / 486.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.602e-06/0.1238, allocations: 0 / 486.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.1239, allocations: 60.2 kB / 486.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.102e-06/0.1239, allocations: 0 / 486.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001802/0.1241, allocations: 75.38 kB / 486.6 MB, free: 14.47 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.843e-05/0.1241, allocations: 77.11 kB / 486.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.999e-05/0.1242, allocations: 89.86 kB / 486.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.1242, allocations: 29.7 kB / 486.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.822e-05/0.1242, allocations: 80.14 kB / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.91e-05/0.1243, allocations: 0 / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.894e-05/0.1243, allocations: 13.66 kB / 486.9 MB, free: 14.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1244, allocations: 318.8 kB / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.336e-05/0.1245, allocations: 4.125 kB / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.081e-06/0.1245, allocations: 0 / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.321e-05/0.1245, allocations: 64.25 kB / 487.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.1245, allocations: 0 / 487.3 MB, free: 13.74 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 8.131e-05/0.1246, allocations: 59.41 kB / 487.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.099e-05/0.1247, allocations: 33.64 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.1247, allocations: 0 / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.1247, allocations: 0 / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.166e-06/0.1247, allocations: 3.984 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.574e-06/0.1247, allocations: 4.094 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.758e-05/0.1247, allocations: 7.938 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.117e-05/0.1248, allocations: 4 kB / 487.4 MB, free: 13.61 MB / 366.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 0.000107/0.1249, allocations: 131.5 kB / 487.5 MB, free: 13.47 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.426e-05/0.1249, allocations: 7.938 kB / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.118e-05/0.1249, allocations: 3.125 kB / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1249, allocations: 0 / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.1249, allocations: 0 / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.1249, allocations: 0 / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000131/0.1251, allocations: 153.6 kB / 487.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.1251, allocations: 7.938 kB / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.443e-06/0.1251, allocations: 0 / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.116e-06/0.1251, allocations: 3.938 kB / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.137e-06/0.1251, allocations: 0 / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.1251, allocations: 3.938 kB / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.1251, allocations: 0 / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001087/0.1253, allocations: 90.83 kB / 487.8 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001581/0.1254, allocations: 85.08 kB / 487.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.1254, allocations: 0 / 487.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.237e-05/0.1255, allocations: 4 kB / 487.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.745e-05/0.1255, allocations: 3.938 kB / 487.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.401e-06/0.1255, allocations: 4 kB / 487.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 3.434e-05/0.1255, allocations: 75.28 kB / 487.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.1255, allocations: 0 / 487.9 MB, free: 12.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005983/0.1261, allocations: 152 kB / 488.1 MB, free: 12.8 MB / 366.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.001297/0.1274, allocations: 0.9153 MB / 489 MB, free: 11.85 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0001321/0.1276, allocations: 55.41 kB / 489.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.696e-06/0.1276, allocations: 0 / 489.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 3.964e-05/0.1277, allocations: 63.33 kB / 489.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001484/0.1278, allocations: 4 kB / 489.1 MB, free: 11.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005597/0.1284, allocations: 186.4 kB / 489.3 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004088/0.1288, allocations: 0.673 MB / 490 MB, free: 10.79 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.634e-06/0.1288, allocations: 7.938 kB / 490 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.028e-05/0.1288, allocations: 7.438 kB / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of SimCode: time 5.11e-07/0.1289, allocations: 0 / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02605/0.1549, allocations: 5.633 MB / 495.6 MB, free: 5.207 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.918/8.073, allocations: 5.141 kB / 495.6 MB, free: 5.203 MB / 366.1 MB (rm -f ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/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_trunk_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches