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.001036/0.001036, 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.001135/0.001135, 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.363/1.363, 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.1952/0.1952, allocations: 46.09 MB / 344.1 MB, free: 11.59 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001262/0.001262, allocations: 81.36 kB / 417.7 MB, free: 19.64 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1181/0.1194, allocations: 62.44 MB / 480.1 MB, free: 5.18 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001746/0.1212, allocations: 475.8 kB / 480.6 MB, free: 4.711 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003492/0.1247, allocations: 2.415 MB / 483 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.16e-05/0.1247, allocations: 0 / 483 MB, free: 2.277 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.183e-05/0.1248, allocations: 4 kB / 483 MB, free: 2.273 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.982e-06/0.1248, allocations: 0 / 483 MB, free: 2.273 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.003008/0.1278, allocations: 1.144 MB / 484.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 5.308e-05/0.1279, allocations: 3.984 kB / 484.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.739e-05/0.1279, allocations: 0 / 484.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.621e-05/0.128, allocations: 4 kB / 484.2 MB, free: 1.121 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.328e-05/0.128, allocations: 3.938 kB / 484.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.161e-06/0.128, allocations: 0 / 484.2 MB, free: 1.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001821/0.1298, allocations: 1.011 MB / 485.2 MB, free: 108 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 1.214e-05/0.1299, allocations: 0 / 485.2 MB, free: 108 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 2.382e-05/0.1299, allocations: 4 kB / 485.2 MB, free: 104 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008211/0.1307, allocations: 447.3 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.1307, allocations: 4 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1307, allocations: 4 kB / 485.6 MB, free: 15.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.969e-06/0.1308, allocations: 0 / 485.6 MB, free: 15.66 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.0004832/0.1312, allocations: 437.4 kB / 486 MB, free: 15.18 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.1313, allocations: 12.03 kB / 486.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.121e-05/0.1313, allocations: 34.69 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.538e-05/0.1314, allocations: 0.9375 kB / 486.1 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.873e-05/0.1315, allocations: 160.4 kB / 486.2 MB, free: 14.93 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/0.1315, allocations: 12.3 kB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.1315, allocations: 4.375 kB / 486.3 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.681e-05/0.1316, allocations: 29.83 kB / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.113e-06/0.1316, allocations: 0 / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.354e-06/0.1316, allocations: 0 / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.683e-06/0.1316, allocations: 0 / 486.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.218e-05/0.1317, allocations: 4 kB / 486.3 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001288/0.1318, allocations: 149.6 kB / 486.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.804e-05/0.1319, allocations: 30.53 kB / 486.5 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.421e-05/0.1319, allocations: 4.859 kB / 486.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.846e-06/0.1319, allocations: 0 / 486.5 MB, free: 14.63 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.351e-05/0.1319, allocations: 60.2 kB / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 8.42e-07/0.132, allocations: 0 / 486.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001767/0.1321, allocations: 63.47 kB / 486.6 MB, free: 14.48 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.83e-05/0.1322, allocations: 81.09 kB / 486.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.258e-05/0.1322, allocations: 93.98 kB / 486.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.158e-05/0.1323, allocations: 29.7 kB / 486.8 MB, free: 14.25 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.669e-05/0.1323, allocations: 80.14 kB / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.428e-05/0.1323, allocations: 0 / 486.9 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.861e-05/0.1323, allocations: 9.719 kB / 486.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001152/0.1325, allocations: 318.8 kB / 487.2 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.017e-05/0.1325, allocations: 3.938 kB / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.731e-06/0.1325, allocations: 0 / 487.2 MB, free: 13.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.545e-05/0.1326, allocations: 64.33 kB / 487.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.1326, allocations: 0 / 487.3 MB, free: 13.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.102e-05/0.1326, allocations: 63.39 kB / 487.3 MB, free: 13.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.352e-05/0.1327, allocations: 33.64 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.658e-06/0.1327, allocations: 0 / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.1327, allocations: 4 kB / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.91e-07/0.1327, allocations: 0 / 487.4 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.067e-06/0.1327, allocations: 4 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.111e-05/0.1327, allocations: 4 kB / 487.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-06/0.1328, allocations: 0 / 487.4 MB, free: 13.62 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.806e-05/0.1328, allocations: 147.5 kB / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.748e-06/0.1329, allocations: 3.938 kB / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.977e-06/0.1329, allocations: 3.125 kB / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1329, allocations: 0 / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1329, allocations: 0 / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.1329, allocations: 0 / 487.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.137e-05/0.133, allocations: 157.5 kB / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.133, allocations: 0 / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.41e-07/0.133, allocations: 0 / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.133, allocations: 7.938 kB / 487.7 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.133, allocations: 3.938 kB / 487.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.31e-07/0.133, allocations: 0 / 487.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.133, allocations: 0 / 487.7 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.486e-05/0.1331, allocations: 94.81 kB / 487.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.139e-05/0.1332, allocations: 81.05 kB / 487.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.104e-05/0.1332, allocations: 0 / 487.9 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.278e-06/0.1332, allocations: 4 kB / 487.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.464e-05/0.1332, allocations: 4.031 kB / 487.9 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.669e-06/0.1332, allocations: 7.938 kB / 487.9 MB, free: 13.01 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.269e-05/0.1333, allocations: 75.28 kB / 487.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1333, allocations: 0 / 487.9 MB, free: 12.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004591/0.1337, allocations: 152 kB / 488.1 MB, free: 12.79 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.0009822/0.1347, allocations: 0.9013 MB / 489 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 9.855e-05/0.1348, allocations: 59.41 kB / 489.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1348, allocations: 0 / 489.1 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.254e-05/0.1349, 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.0001238/0.135, 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.0003978/0.1354, 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.0002253/0.1357, allocations: 0.6806 MB / 490 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.052e-06/0.1357, allocations: 0 / 490 MB, free: 10.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.38e-05/0.1357, allocations: 7.438 kB / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1357, allocations: 128 / 490 MB, free: 10.77 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02279/0.1585, allocations: 5.642 MB / 495.6 MB, free: 5.199 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.503/9.661, allocations: 5.141 kB / 495.6 MB, free: 5.195 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