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.001415/0.001415, allocations: 115.7 kB / 17.33 MB, free: 6.02 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001564/0.001564, allocations: 201.8 kB / 18.27 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.326/1.326, allocations: 227.4 MB / 246.4 MB, free: 10.84 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1959/0.1959, allocations: 46.1 MB / 343.8 MB, free: 11.77 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001527/0.001527, allocations: 75.34 kB / 417.1 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1091/0.1106, allocations: 62.44 MB / 479.6 MB, free: 5.531 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001759/0.1124, allocations: 0.5238 MB / 480.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003169/0.1156, allocations: 2.399 MB / 482.5 MB, free: 2.586 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.854e-05/0.1157, allocations: 3.938 kB / 482.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.464e-05/0.1157, allocations: 0 / 482.5 MB, free: 2.582 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.25e-06/0.1157, allocations: 0 / 482.5 MB, free: 2.582 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.002597/0.1183, allocations: 1.059 MB / 483.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 4.775e-05/0.1184, allocations: 4 kB / 483.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.552e-05/0.1184, allocations: 0 / 483.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.668e-05/0.1184, allocations: 3.938 kB / 483.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.581e-05/0.1185, allocations: 3.938 kB / 483.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.957e-06/0.1185, allocations: 3.984 kB / 483.6 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001591/0.1201, allocations: 1.015 MB / 484.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.377e-06/0.1201, allocations: 0 / 484.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.091e-05/0.1201, allocations: 0 / 484.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007536/0.1209, allocations: 447.4 kB / 485 MB, free: 56 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1209, allocations: 0 / 485 MB, free: 56 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.1209, allocations: 0 / 485 MB, free: 56 kB / 350.1 MB Notification: Performance of Transformations before backend: time 4.679e-06/0.1209, allocations: 0 / 485 MB, free: 56 kB / 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.000468/0.1214, allocations: 441.4 kB / 485.5 MB, free: 15.57 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.149e-05/0.1214, allocations: 12.03 kB / 485.5 MB, free: 15.56 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.085e-05/0.1215, allocations: 34.75 kB / 485.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.636e-05/0.1215, allocations: 8.875 kB / 485.5 MB, free: 15.51 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.05e-05/0.1216, allocations: 160.4 kB / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.091e-05/0.1216, allocations: 384 / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.538e-06/0.1216, allocations: 384 / 485.7 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.375e-05/0.1217, allocations: 37.81 kB / 485.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.832e-06/0.1217, allocations: 0 / 485.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.742e-06/0.1218, allocations: 0 / 485.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.988e-06/0.1218, allocations: 0 / 485.7 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.831e-05/0.1218, allocations: 8 kB / 485.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001267/0.1219, allocations: 149.7 kB / 485.9 MB, free: 15.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.096e-05/0.122, allocations: 22.45 kB / 485.9 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.5e-05/0.122, allocations: 8.844 kB / 485.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.122, allocations: 4.078 kB / 485.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.296e-05/0.1221, allocations: 68.2 kB / 486 MB, free: 14.94 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 1.122e-06/0.1221, allocations: 4 kB / 486 MB, free: 14.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001598/0.1222, allocations: 59.41 kB / 486 MB, free: 14.86 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.39e-05/0.1223, allocations: 81.05 kB / 486.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.12e-05/0.1223, allocations: 89.86 kB / 486.2 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.334e-05/0.1223, allocations: 29.69 kB / 486.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.429e-05/0.1224, allocations: 80.14 kB / 486.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.1224, allocations: 0 / 486.3 MB, free: 14.55 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.76e-05/0.1224, allocations: 17.72 kB / 486.3 MB, free: 14.53 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.269e-05/0.1225, allocations: 315 kB / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.187e-06/0.1225, allocations: 0 / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.187e-06/0.1225, allocations: 4 kB / 486.6 MB, free: 14.21 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.744e-05/0.1226, allocations: 56.27 kB / 486.7 MB, free: 14.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.1226, allocations: 4 kB / 486.7 MB, free: 14.13 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.609e-05/0.1227, allocations: 63.39 kB / 486.8 MB, free: 14.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.43e-05/0.1227, allocations: 37.64 kB / 486.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.871e-06/0.1227, allocations: 3.938 kB / 486.8 MB, free: 14.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.09e-05/0.1228, allocations: 8.031 kB / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.52e-07/0.1228, allocations: 0 / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.1228, allocations: 0 / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.466e-05/0.1228, allocations: 0 / 486.8 MB, free: 14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.352e-06/0.1228, allocations: 0 / 486.8 MB, free: 14 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 7.749e-05/0.1229, allocations: 139.5 kB / 486.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.628e-06/0.1229, allocations: 3.938 kB / 486.9 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.306e-06/0.1229, allocations: 3.125 kB / 487 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.1229, allocations: 4 kB / 487 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1229, allocations: 4 kB / 487 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.1229, allocations: 0 / 487 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.618e-05/0.123, allocations: 145.6 kB / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.123, allocations: 0 / 487.1 MB, free: 13.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.805e-06/0.123, allocations: 3.984 kB / 487.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.123, allocations: 3.938 kB / 487.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.408e-06/0.1231, allocations: 4 kB / 487.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.1231, allocations: 7.938 kB / 487.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.1231, allocations: 3.984 kB / 487.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.727e-05/0.1232, allocations: 102.8 kB / 487.2 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.26e-05/0.1232, allocations: 81.05 kB / 487.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.1232, allocations: 0 / 487.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.248e-06/0.1233, allocations: 0 / 487.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.463e-05/0.1233, allocations: 0 / 487.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.17e-06/0.1233, allocations: 4 kB / 487.3 MB, free: 13.4 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.513e-05/0.1233, allocations: 75.28 kB / 487.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1233, allocations: 0 / 487.4 MB, free: 13.32 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004877/0.1238, allocations: 148 kB / 487.5 MB, free: 13.18 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.001031/0.1249, allocations: 0.917 MB / 488.4 MB, free: 12.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 8.172e-05/0.125, allocations: 59.34 kB / 488.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.125, allocations: 0 / 488.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.901e-05/0.125, allocations: 55.41 kB / 488.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001208/0.1251, allocations: 0 / 488.6 MB, free: 12.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003825/0.1255, allocations: 194.6 kB / 488.7 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001981/0.1257, allocations: 0.669 MB / 489.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.171e-06/0.1257, allocations: 0 / 489.4 MB, free: 11.17 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.361e-05/0.1258, allocations: 7.438 kB / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1258, allocations: 0 / 489.4 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2804/0.4062, allocations: 5.571 MB / 495 MB, free: 5.707 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002791/0.4065, allocations: 236.8 kB / 495.2 MB, free: 5.457 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.067/3.474, allocations: 0 / 495.2 MB, free: 5.457 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/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