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.001141/0.001141, allocations: 118.8 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001353, allocations: 201.2 kB / 18.73 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.479/1.479, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2175/0.2175, allocations: 46.11 MB / 344.3 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 79.88 kB / 480.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.334/0.3356, allocations: 62.43 MB / 0.5305 GB, free: 13.41 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001995/0.3376, allocations: 472.8 kB / 0.5309 GB, free: 13.06 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.004248/0.3419, allocations: 2.412 MB / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.857e-05/0.342, allocations: 0 / 0.5333 GB, free: 11.17 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.209e-05/0.342, allocations: 5.031 kB / 0.5333 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.39e-06/0.342, allocations: 0 / 0.5333 GB, free: 11.16 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.003421/0.3455, allocations: 1.144 MB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 5.217e-05/0.3455, allocations: 1.375 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.118e-05/0.3456, allocations: 1.375 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.543e-05/0.3456, allocations: 3.938 kB / 0.5344 GB, free: 10.39 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.317e-05/0.3456, allocations: 5.359 kB / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 6.011e-06/0.3456, allocations: 0 / 0.5344 GB, free: 10.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002047/0.3477, allocations: 1.038 MB / 0.5354 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.297e-05/0.3477, allocations: 1.219 kB / 0.5354 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.652e-05/0.3478, allocations: 0 / 0.5354 GB, free: 9.883 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009185/0.3487, allocations: 442.9 kB / 0.5359 GB, free: 9.625 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.3487, allocations: 1.5 kB / 0.5359 GB, free: 9.625 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3487, allocations: 0 / 0.5359 GB, free: 9.625 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.068e-05/0.3488, allocations: 0 / 0.5359 GB, free: 9.625 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.00049/0.3493, allocations: 446.3 kB / 0.5363 GB, free: 9.176 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.141e-05/0.3493, allocations: 9.125 kB / 0.5363 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.962e-05/0.3493, allocations: 36.41 kB / 0.5363 GB, free: 9.133 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.018e-05/0.3494, allocations: 8.859 kB / 0.5363 GB, free: 9.125 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.237e-05/0.3495, allocations: 164.4 kB / 0.5365 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.3495, allocations: 1.188 kB / 0.5365 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.217e-05/0.3495, allocations: 1.719 kB / 0.5365 GB, free: 8.926 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.716e-05/0.3496, allocations: 39.16 kB / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.642e-06/0.3496, allocations: 1.156 kB / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.903e-06/0.3496, allocations: 0 / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.184e-06/0.3496, allocations: 0 / 0.5365 GB, free: 8.883 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.982e-05/0.3497, allocations: 6.422 kB / 0.5365 GB, free: 8.879 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001225/0.3498, allocations: 147.1 kB / 0.5367 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.168e-05/0.3498, allocations: 23.98 kB / 0.5367 GB, free: 8.656 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.214e-05/0.3499, allocations: 10.39 kB / 0.5367 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.474e-06/0.3499, allocations: 0 / 0.5367 GB, free: 8.645 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.256e-05/0.3499, allocations: 61.55 kB / 0.5368 GB, free: 8.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.042e-06/0.3499, allocations: 0 / 0.5368 GB, free: 8.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001695/0.3501, allocations: 66.8 kB / 0.5368 GB, free: 8.5 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.175e-05/0.3502, allocations: 82.02 kB / 0.5369 GB, free: 8.402 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.562e-05/0.3502, allocations: 90.95 kB / 0.537 GB, free: 8.305 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.3502, allocations: 29.7 kB / 0.537 GB, free: 8.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.656e-05/0.3503, allocations: 80.14 kB / 0.5371 GB, free: 8.188 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.73e-05/0.3503, allocations: 1.062 kB / 0.5371 GB, free: 8.188 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.883e-05/0.3503, allocations: 12.12 kB / 0.5371 GB, free: 8.172 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.583e-05/0.3504, allocations: 314.8 kB / 0.5374 GB, free: 7.855 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.167e-06/0.3504, allocations: 5.25 kB / 0.5374 GB, free: 7.852 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.342e-06/0.3504, allocations: 1.062 kB / 0.5374 GB, free: 7.852 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.364e-05/0.3505, allocations: 60.3 kB / 0.5375 GB, free: 7.781 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3505, allocations: 0 / 0.5375 GB, free: 7.781 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.056e-05/0.3506, allocations: 62.81 kB / 0.5375 GB, free: 7.715 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.292e-05/0.3506, allocations: 39.03 kB / 0.5376 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3506, allocations: 0 / 0.5376 GB, free: 7.676 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.3506, allocations: 3.938 kB / 0.5376 GB, free: 7.672 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.525e-06/0.3507, allocations: 5.438 kB / 0.5376 GB, free: 7.668 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.3507, allocations: 4 kB / 0.5376 GB, free: 7.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.844e-05/0.3507, allocations: 5.156 kB / 0.5376 GB, free: 7.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-06/0.3507, allocations: 0 / 0.5376 GB, free: 7.66 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 7.775e-05/0.3508, allocations: 137.8 kB / 0.5377 GB, free: 7.512 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.044e-05/0.3508, allocations: 5.281 kB / 0.5377 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.765e-06/0.3508, allocations: 3.125 kB / 0.5377 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.3508, allocations: 1.375 kB / 0.5377 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.225e-05/0.3508, allocations: 7.922 kB / 0.5377 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.3509, allocations: 7.938 kB / 0.5378 GB, free: 7.492 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.8e-05/0.351, allocations: 147.1 kB / 0.5379 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.351, allocations: 1.344 kB / 0.5379 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.81e-07/0.351, allocations: 0 / 0.5379 GB, free: 7.301 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.351, allocations: 3.938 kB / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.233e-06/0.351, allocations: 1.344 kB / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.91e-07/0.351, allocations: 0 / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.351, allocations: 0 / 0.5379 GB, free: 7.297 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.145e-05/0.3511, allocations: 98.45 kB / 0.538 GB, free: 7.188 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.866e-05/0.3511, allocations: 81.05 kB / 0.5381 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.3512, allocations: 1.469 kB / 0.5381 GB, free: 7.09 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.198e-05/0.3512, allocations: 5.297 kB / 0.5381 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.212e-05/0.3512, allocations: 0 / 0.5381 GB, free: 7.086 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.326e-06/0.3512, allocations: 1.25 kB / 0.5381 GB, free: 7.086 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.838e-05/0.3512, allocations: 75.28 kB / 0.5382 GB, free: 7.012 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3512, allocations: 0 / 0.5382 GB, free: 7.012 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005416/0.3518, allocations: 154.7 kB / 0.5383 GB, free: 6.961 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.001086/0.3529, allocations: 0.9009 MB / 0.5392 GB, free: 6.207 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001177/0.353, allocations: 64.11 kB / 0.5392 GB, free: 6.137 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.353, allocations: 0.9688 kB / 0.5392 GB, free: 6.137 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.421e-05/0.3531, allocations: 58.03 kB / 0.5393 GB, free: 6.07 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001338/0.3532, allocations: 8.156 kB / 0.5393 GB, free: 6.066 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004447/0.3537, allocations: 184.9 kB / 0.5395 GB, free: 5.891 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000241/0.3539, allocations: 0.674 MB / 0.5401 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.523e-06/0.3539, allocations: 0 / 0.5401 GB, free: 5.191 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.709e-05/0.354, allocations: 9.781 kB / 0.5401 GB, free: 5.184 MB / 398.1 MB Notification: Performance of SimCode: time 2.1e-07/0.354, allocations: 0 / 0.5401 GB, free: 5.184 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02692/0.3809, allocations: 5.653 MB / 0.5457 GB, free: 1.816 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.978/8.359, allocations: 10.55 kB / 0.5457 GB, free: 1.809 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