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.0007335/0.0007335, allocations: 89.75 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001387/0.001387, allocations: 202.4 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 227.7 MB / 246.8 MB, free: 9.578 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1781/0.1781, allocations: 46.19 MB / 345.2 MB, free: 11.16 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002305/0.0002305, allocations: 8 kB / 419.6 MB, free: 19.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08893/0.08918, allocations: 63.56 MB / 483.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.0004525/0.08967, allocations: 199 kB / 483.4 MB, free: 3.852 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002782/0.09246, allocations: 2.431 MB / 485.8 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.568e-06/0.09249, allocations: 4 kB / 485.8 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 1.184e-05/0.0925, allocations: 3.938 kB / 485.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.958e-06/0.09251, allocations: 0 / 485.8 MB, free: 1.395 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.001919/0.09444, allocations: 1.031 MB / 486.8 MB, free: 372 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 2.29e-05/0.09447, allocations: 0 / 486.8 MB, free: 372 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.746e-05/0.09451, allocations: 11.94 kB / 486.8 MB, free: 360 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.153e-05/0.09453, allocations: 0 / 486.8 MB, free: 360 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.86e-05/0.09455, allocations: 3.984 kB / 486.8 MB, free: 356 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.227e-06/0.09456, allocations: 3.938 kB / 486.9 MB, free: 352 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001249/0.09581, allocations: 1.003 MB / 487.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 5.34e-06/0.09583, allocations: 0 / 487.9 MB, free: 15.34 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 2.505e-05/0.09586, allocations: 25.7 kB / 487.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004863/0.09635, allocations: 439.3 kB / 488.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.685e-06/0.09636, allocations: 0 / 488.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.09637, allocations: 0 / 488.3 MB, free: 14.88 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.006e-06/0.09638, allocations: 4 kB / 488.3 MB, free: 14.88 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.0003295/0.09671, allocations: 437.5 kB / 488.7 MB, free: 14.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.469e-05/0.09675, allocations: 12.86 kB / 488.8 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.308e-05/0.09678, allocations: 38.69 kB / 488.8 MB, free: 14.34 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.831e-05/0.09681, allocations: 4.938 kB / 488.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.228e-05/0.09688, allocations: 160.4 kB / 489 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.901e-06/0.09689, allocations: 384 / 489 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.432e-06/0.09691, allocations: 384 / 489 MB, free: 14.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 5.96e-05/0.09697, allocations: 33.83 kB / 489 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.589e-06/0.09698, allocations: 0 / 489 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.37e-06/0.09699, allocations: 0 / 489 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.396e-06/0.097, allocations: 0 / 489 MB, free: 14.1 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.32e-05/0.09701, allocations: 3.984 kB / 489 MB, free: 14.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001033/0.09712, allocations: 153.7 kB / 489.1 MB, free: 13.89 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 2.794e-05/0.09716, allocations: 18.52 kB / 489.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.292e-05/0.09719, allocations: 8.797 kB / 489.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.869e-06/0.0972, allocations: 0 / 489.2 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.718e-05/0.09724, allocations: 64.27 kB / 489.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of pre-optimization done (n=1): time 7.62e-07/0.09725, allocations: 0 / 489.2 MB, free: 13.78 MB / 366.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001335/0.09738, allocations: 79.31 kB / 489.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.09742, allocations: 77.11 kB / 489.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.054e-05/0.09746, allocations: 89.86 kB / 489.5 MB, free: 13.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.09748, allocations: 25.7 kB / 489.5 MB, free: 13.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.333e-05/0.09751, allocations: 80.14 kB / 489.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.538e-06/0.09752, allocations: 0 / 489.6 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.987e-05/0.09755, allocations: 13.72 kB / 489.6 MB, free: 13.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.588e-05/0.09764, allocations: 310.8 kB / 489.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.574e-06/0.09765, allocations: 4.109 kB / 489.9 MB, free: 13.05 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.108e-06/0.09766, allocations: 4 kB / 489.9 MB, free: 13.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.652e-05/0.09771, allocations: 64.27 kB / 490 MB, free: 12.96 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.09772, allocations: 0 / 490 MB, free: 12.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 5.78e-05/0.09778, allocations: 63.34 kB / 490 MB, free: 12.89 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.442e-05/0.09781, allocations: 43.75 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.886e-06/0.09782, allocations: 0 / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.564e-06/0.09783, allocations: 0 / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.064e-06/0.09784, allocations: 4 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.09785, allocations: 96 / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.211e-05/0.09787, allocations: 4 kB / 490.1 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.31e-06/0.09788, allocations: 0 / 490.1 MB, free: 12.84 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 6.78e-05/0.09795, allocations: 135.5 kB / 490.2 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.715e-06/0.09796, allocations: 3.938 kB / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.783e-06/0.09797, allocations: 7.125 kB / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.42e-07/0.09798, allocations: 0 / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.304e-06/0.09798, allocations: 0 / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.655e-06/0.09799, allocations: 3.984 kB / 490.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.822e-05/0.09807, allocations: 153.6 kB / 490.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.09808, allocations: 8 kB / 490.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.1e-07/0.09809, allocations: 0 / 490.4 MB, free: 12.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.066e-06/0.09809, allocations: 3.938 kB / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.819e-06/0.0981, allocations: 0 / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.083e-06/0.09811, allocations: 0 / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.09811, allocations: 3.938 kB / 490.4 MB, free: 12.46 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.467e-05/0.09819, allocations: 94.77 kB / 490.5 MB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.251e-05/0.09823, allocations: 85.08 kB / 490.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.014e-05/0.09825, allocations: 4 kB / 490.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.354e-06/0.09826, allocations: 0 / 490.6 MB, free: 12.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.024e-05/0.09828, allocations: 3.984 kB / 490.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.09828, allocations: 0 / 490.6 MB, free: 12.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 2.012e-05/0.09831, allocations: 75.28 kB / 490.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.09831, allocations: 0 / 490.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003644/0.09868, allocations: 152 kB / 490.8 MB, free: 12.01 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.0007908/0.09948, allocations: 0.9125 MB / 491.7 MB, free: 11.07 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 6.169e-05/0.09955, allocations: 59.34 kB / 491.8 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.447e-06/0.09956, allocations: 0 / 491.8 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 2.502e-05/0.09959, allocations: 55.41 kB / 491.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001065/0.0997, allocations: 0 / 491.8 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003018/0.1, allocations: 184.2 kB / 492 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001893/0.1002, allocations: 0.6731 MB / 492.7 MB, free: 10.01 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 3.657e-06/0.1002, allocations: 4.125 kB / 492.7 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.174e-06/0.1002, allocations: 7.438 kB / 492.7 MB, free: 10 MB / 366.1 MB Notification: Performance of SimCode: time 3.196e-06/0.1002, allocations: 0 / 492.7 MB, free: 10 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1147/0.2149, allocations: 5.446 MB / 498.1 MB, free: 4.672 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000228/0.2152, allocations: 240 kB / 498.4 MB, free: 4.418 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.935/2.15, allocations: 3.938 kB / 498.4 MB, free: 4.414 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