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.001345/0.001345, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001421/0.001421, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 247 MB, free: 10.41 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.234/0.234, allocations: 46.12 MB / 344.4 MB, free: 11.42 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002301/0.002301, allocations: 75.88 kB / 480.9 MB, free: 4.512 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3197, allocations: 62.44 MB / 0.5306 GB, free: 13.35 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001465/0.3212, allocations: 482.5 kB / 0.531 GB, free: 13 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0039/0.3251, allocations: 2.413 MB / 0.5334 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.111e-05/0.3251, allocations: 0 / 0.5334 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.598e-05/0.3252, allocations: 0 / 0.5334 GB, free: 11.1 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.183e-06/0.3252, allocations: 1.125 kB / 0.5334 GB, free: 11.1 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.00318/0.3284, allocations: 1.144 MB / 0.5345 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.695e-05/0.3285, allocations: 9.359 kB / 0.5345 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.019e-05/0.3285, allocations: 1.375 kB / 0.5345 GB, free: 10.32 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.93e-05/0.3286, allocations: 5.312 kB / 0.5345 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.903e-05/0.3286, allocations: 3.938 kB / 0.5345 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.632e-06/0.3286, allocations: 1.375 kB / 0.5345 GB, free: 10.31 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001909/0.3305, allocations: 1.03 MB / 0.5355 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.448e-06/0.3306, allocations: 0 / 0.5355 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.306e-05/0.3306, allocations: 1.031 kB / 0.5355 GB, free: 9.816 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008843/0.3315, allocations: 455.1 kB / 0.536 GB, free: 9.551 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.3315, allocations: 0 / 0.536 GB, free: 9.551 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.3315, allocations: 0 / 0.536 GB, free: 9.551 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.12e-06/0.3315, allocations: 1.375 kB / 0.536 GB, free: 9.551 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.0004671/0.332, allocations: 443.1 kB / 0.5364 GB, free: 9.102 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.332, allocations: 8.594 kB / 0.5364 GB, free: 9.102 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.595e-05/0.3321, allocations: 31.88 kB / 0.5364 GB, free: 9.062 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.83e-05/0.3321, allocations: 4.922 kB / 0.5364 GB, free: 9.059 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.3322, allocations: 161.6 kB / 0.5366 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.287e-06/0.3322, allocations: 384 / 0.5366 GB, free: 8.863 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.672e-06/0.3323, allocations: 5.5 kB / 0.5366 GB, free: 8.859 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.667e-05/0.3323, allocations: 35.95 kB / 0.5366 GB, free: 8.82 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.382e-06/0.3324, allocations: 3.938 kB / 0.5366 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.706e-06/0.3324, allocations: 1.094 kB / 0.5366 GB, free: 8.816 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.008e-06/0.3324, allocations: 3.938 kB / 0.5367 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.583e-05/0.3324, allocations: 1.125 kB / 0.5367 GB, free: 8.812 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001476/0.3326, allocations: 147.9 kB / 0.5368 GB, free: 8.621 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.268e-05/0.3326, allocations: 23.89 kB / 0.5368 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.463e-05/0.3326, allocations: 6.141 kB / 0.5368 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.627e-06/0.3326, allocations: 0 / 0.5368 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.41e-05/0.3327, allocations: 65.61 kB / 0.5369 GB, free: 8.504 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.022e-06/0.3327, allocations: 1.344 kB / 0.5369 GB, free: 8.504 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001634/0.3329, allocations: 66.02 kB / 0.5369 GB, free: 8.434 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.3329, allocations: 78.23 kB / 0.537 GB, free: 8.34 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.234e-05/0.333, allocations: 93.81 kB / 0.5371 GB, free: 8.238 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.333, allocations: 31.14 kB / 0.5371 GB, free: 8.203 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.25e-05/0.3331, allocations: 80.14 kB / 0.5372 GB, free: 8.121 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.049e-05/0.3331, allocations: 4 kB / 0.5372 GB, free: 8.117 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.962e-05/0.3331, allocations: 12.47 kB / 0.5372 GB, free: 8.102 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001392/0.3333, allocations: 312.2 kB / 0.5375 GB, free: 7.789 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.648e-06/0.3333, allocations: 0 / 0.5375 GB, free: 7.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.516e-06/0.3333, allocations: 9.266 kB / 0.5375 GB, free: 7.781 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.629e-05/0.3334, allocations: 67.58 kB / 0.5376 GB, free: 7.703 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.3334, allocations: 0 / 0.5376 GB, free: 7.703 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.302e-05/0.3334, allocations: 62.88 kB / 0.5377 GB, free: 7.637 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.3335, allocations: 34.73 kB / 0.5377 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.318e-06/0.3335, allocations: 0 / 0.5377 GB, free: 7.602 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.3335, allocations: 5.141 kB / 0.5377 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.21e-07/0.3335, allocations: 0 / 0.5377 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.408e-06/0.3335, allocations: 1.406 kB / 0.5377 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.432e-05/0.3335, allocations: 0 / 0.5377 GB, free: 7.598 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.676e-06/0.3336, allocations: 1.156 kB / 0.5377 GB, free: 7.598 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 0.0001056/0.3337, allocations: 142.2 kB / 0.5378 GB, free: 7.445 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.498e-06/0.3337, allocations: 3.938 kB / 0.5378 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.885e-06/0.3337, allocations: 4.469 kB / 0.5379 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.3337, allocations: 0 / 0.5379 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.3337, allocations: 0 / 0.5379 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.3337, allocations: 1.438 kB / 0.5379 GB, free: 7.441 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.3338, allocations: 158.9 kB / 0.538 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.3339, allocations: 0 / 0.538 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.01e-07/0.3339, allocations: 0 / 0.538 GB, free: 7.238 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.408e-06/0.3339, allocations: 9.25 kB / 0.538 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.843e-06/0.3339, allocations: 0 / 0.538 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.3339, allocations: 1.5 kB / 0.538 GB, free: 7.23 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.3339, allocations: 3.938 kB / 0.538 GB, free: 7.227 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001095/0.334, allocations: 89.08 kB / 0.5381 GB, free: 7.125 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.239e-05/0.3341, allocations: 82.39 kB / 0.5382 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.305e-05/0.3341, allocations: 1.438 kB / 0.5382 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.926e-06/0.3341, allocations: 0 / 0.5382 GB, free: 7.027 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.688e-05/0.3341, allocations: 9.359 kB / 0.5382 GB, free: 7.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.816e-06/0.3341, allocations: 0 / 0.5382 GB, free: 7.02 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.688e-05/0.3342, allocations: 79.27 kB / 0.5383 GB, free: 6.941 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3342, allocations: 1.375 kB / 0.5383 GB, free: 6.941 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005648/0.3347, allocations: 153.5 kB / 0.5384 GB, free: 6.891 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.001134/0.3359, allocations: 0.9142 MB / 0.5393 GB, free: 6.125 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001069/0.336, allocations: 64.89 kB / 0.5394 GB, free: 6.055 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.336, allocations: 0 / 0.5394 GB, free: 6.055 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.822e-05/0.3361, allocations: 54.94 kB / 0.5394 GB, free: 5.992 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001536/0.3362, allocations: 11.48 kB / 0.5394 GB, free: 5.988 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004206/0.3366, allocations: 182.6 kB / 0.5396 GB, free: 5.812 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003102/0.337, allocations: 0.671 MB / 0.5403 GB, free: 5.117 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 7.334e-06/0.337, allocations: 0 / 0.5403 GB, free: 5.117 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.497e-05/0.337, allocations: 12.44 kB / 0.5403 GB, free: 5.105 MB / 398.1 MB Notification: Performance of SimCode: time 2.91e-07/0.337, allocations: 1.156 kB / 0.5403 GB, free: 5.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02947/0.3665, allocations: 5.657 MB / 0.5458 GB, free: 1.699 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.443/8.81, allocations: 11.78 kB / 0.5458 GB, free: 1.691 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