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.001143/0.001143, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001313/0.001313, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2241/0.2241, allocations: 46.1 MB / 344.3 MB, free: 11.5 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001576/0.001576, allocations: 71.88 kB / 480.8 MB, free: 4.617 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3357, allocations: 62.43 MB / 0.5305 GB, free: 13.3 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001763/0.3375, allocations: 478.5 kB / 0.5309 GB, free: 12.96 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003748/0.3413, allocations: 2.411 MB / 0.5333 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.457e-05/0.3413, allocations: 0 / 0.5333 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.031e-05/0.3414, allocations: 0 / 0.5333 GB, free: 11.06 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.5e-06/0.3414, allocations: 0 / 0.5333 GB, free: 11.06 MB / 398.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.002991/0.3444, allocations: 1.145 MB / 0.5344 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.835e-05/0.3444, allocations: 1.406 kB / 0.5344 GB, free: 10.29 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.66e-05/0.3445, allocations: 5.766 kB / 0.5344 GB, free: 10.28 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.291e-05/0.3445, allocations: 7.875 kB / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.962e-05/0.3445, allocations: 6.141 kB / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.532e-06/0.3446, allocations: 0 / 0.5344 GB, free: 10.27 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001882/0.3464, allocations: 1.029 MB / 0.5354 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.042e-05/0.3465, allocations: 1.125 kB / 0.5354 GB, free: 9.777 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.626e-05/0.3465, allocations: 5.062 kB / 0.5354 GB, free: 9.773 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001002/0.3475, allocations: 450 kB / 0.5359 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3475, allocations: 1.125 kB / 0.5359 GB, free: 9.508 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3475, allocations: 0 / 0.5359 GB, free: 9.508 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.06e-05/0.3476, allocations: 0 / 0.5359 GB, free: 9.508 MB / 398.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.0005629/0.3481, allocations: 439.1 kB / 0.5363 GB, free: 9.066 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.3482, allocations: 9.062 kB / 0.5363 GB, free: 9.066 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.486e-05/0.3482, allocations: 35.84 kB / 0.5363 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.59e-05/0.3482, allocations: 0.9375 kB / 0.5363 GB, free: 9.023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001005/0.3484, allocations: 164.4 kB / 0.5365 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.158e-05/0.3484, allocations: 1.562 kB / 0.5365 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.071e-05/0.3484, allocations: 1.875 kB / 0.5365 GB, free: 8.824 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.908e-05/0.3485, allocations: 35 kB / 0.5365 GB, free: 8.785 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.494e-06/0.3485, allocations: 5.125 kB / 0.5365 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.538e-06/0.3485, allocations: 0 / 0.5365 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.3485, allocations: 0 / 0.5365 GB, free: 8.781 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.2e-05/0.3486, allocations: 5.312 kB / 0.5365 GB, free: 8.777 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001489/0.3487, allocations: 143.8 kB / 0.5367 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.787e-05/0.3488, allocations: 27.7 kB / 0.5367 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.547e-05/0.3488, allocations: 7.016 kB / 0.5367 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.476e-06/0.3488, allocations: 0 / 0.5367 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.268e-05/0.3489, allocations: 65.31 kB / 0.5368 GB, free: 8.469 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.143e-06/0.3489, allocations: 0 / 0.5368 GB, free: 8.469 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.000203/0.3491, allocations: 67.02 kB / 0.5368 GB, free: 8.398 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.065e-05/0.3491, allocations: 82.2 kB / 0.5369 GB, free: 8.301 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.485e-05/0.3492, allocations: 93.86 kB / 0.537 GB, free: 8.199 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/0.3492, allocations: 26.77 kB / 0.537 GB, free: 8.168 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.014e-05/0.3493, allocations: 80.14 kB / 0.5371 GB, free: 8.086 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.859e-05/0.3493, allocations: 1.094 kB / 0.5371 GB, free: 8.086 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.632e-05/0.3493, allocations: 15.89 kB / 0.5371 GB, free: 8.066 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.3495, allocations: 311.9 kB / 0.5374 GB, free: 7.754 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.438e-06/0.3495, allocations: 0 / 0.5374 GB, free: 7.754 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.241e-06/0.3495, allocations: 1.25 kB / 0.5374 GB, free: 7.754 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.848e-05/0.3495, allocations: 67.64 kB / 0.5375 GB, free: 7.676 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.258e-06/0.3496, allocations: 1.062 kB / 0.5375 GB, free: 7.676 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.458e-05/0.3496, allocations: 65.23 kB / 0.5375 GB, free: 7.605 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.3497, allocations: 36.11 kB / 0.5376 GB, free: 7.57 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.079e-06/0.3497, allocations: 3.938 kB / 0.5376 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.338e-05/0.3497, allocations: 0 / 0.5376 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.31e-07/0.3497, allocations: 1.125 kB / 0.5376 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.9e-06/0.3497, allocations: 0 / 0.5376 GB, free: 7.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.249e-05/0.3498, allocations: 9.094 kB / 0.5376 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.3498, allocations: 0.9688 kB / 0.5376 GB, free: 7.559 MB / 398.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 8.831e-05/0.3499, allocations: 137 kB / 0.5377 GB, free: 7.41 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.253e-05/0.3499, allocations: 8.859 kB / 0.5377 GB, free: 7.402 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.101e-05/0.3499, allocations: 8.219 kB / 0.5377 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.3499, allocations: 0 / 0.5377 GB, free: 7.398 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.3499, allocations: 5.188 kB / 0.5377 GB, free: 7.395 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3499, allocations: 3.984 kB / 0.5377 GB, free: 7.391 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.997e-05/0.35, allocations: 146.7 kB / 0.5379 GB, free: 7.199 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.35, allocations: 5.156 kB / 0.5379 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.51e-07/0.35, allocations: 0 / 0.5379 GB, free: 7.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.3501, allocations: 7.922 kB / 0.5379 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.3501, allocations: 1.188 kB / 0.5379 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.764e-06/0.3501, allocations: 1.062 kB / 0.5379 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.926e-06/0.3501, allocations: 0 / 0.5379 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.371e-05/0.3502, allocations: 89.22 kB / 0.538 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.635e-05/0.3502, allocations: 86.31 kB / 0.5381 GB, free: 6.984 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.2e-05/0.3502, allocations: 5.094 kB / 0.5381 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.899e-06/0.3503, allocations: 0 / 0.5381 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.504e-05/0.3503, allocations: 1.094 kB / 0.5381 GB, free: 6.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.3503, allocations: 1.188 kB / 0.5381 GB, free: 6.98 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.334e-05/0.3503, allocations: 75.28 kB / 0.5381 GB, free: 6.906 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3503, allocations: 0 / 0.5381 GB, free: 6.906 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005864/0.3509, allocations: 154.6 kB / 0.5383 GB, free: 6.855 MB / 398.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.001329/0.3523, allocations: 0.9168 MB / 0.5392 GB, free: 6.09 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001125/0.3524, allocations: 56.75 kB / 0.5392 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3524, allocations: 0 / 0.5392 GB, free: 6.027 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.608e-05/0.3525, allocations: 58.56 kB / 0.5393 GB, free: 5.961 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001397/0.3526, allocations: 7.484 kB / 0.5393 GB, free: 5.961 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005281/0.3531, allocations: 181.2 kB / 0.5395 GB, free: 5.789 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003028/0.3535, allocations: 0.6702 MB / 0.5401 GB, free: 5.094 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 8.416e-06/0.3535, allocations: 128 / 0.5401 GB, free: 5.094 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.412e-05/0.3535, allocations: 12.69 kB / 0.5401 GB, free: 5.082 MB / 398.1 MB Notification: Performance of SimCode: time 2.534e-06/0.3535, allocations: 0 / 0.5401 GB, free: 5.082 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02511/0.3786, allocations: 5.668 MB / 0.5457 GB, free: 1.707 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.004/8.382, allocations: 3.859 kB / 0.5457 GB, free: 1.707 MB / 398.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