Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexFunctions,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00111/0.00111, allocations: 110.4 kB / 17.78 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0012/0.0012, allocations: 183.9 kB / 18.7 MB, free: 4.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 222.9 MB / 242.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2139/0.2139, allocations: 44.19 MB / 336.7 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002044/0.002044, allocations: 63.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3473, allocations: 60.82 MB / 0.5184 GB, free: 3.281 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001837/0.3492, allocations: 490.9 kB / 0.5188 GB, free: 2.988 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003515/0.3528, allocations: 2.275 MB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.606e-05/0.3528, allocations: 0 / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.347e-05/0.3529, allocations: 1.281 kB / 0.5211 GB, free: 1.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 7.013e-06/0.353, allocations: 4 kB / 0.5211 GB, free: 1.383 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/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.003041/0.356, allocations: 1.133 MB / 0.5222 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 5.864e-05/0.3561, allocations: 1.609 kB / 0.5222 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.68e-05/0.3561, allocations: 1.766 kB / 0.5222 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.588e-05/0.3561, allocations: 1.094 kB / 0.5222 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.995e-05/0.3562, allocations: 1.156 kB / 0.5222 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.62e-06/0.3562, allocations: 4 kB / 0.5222 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001911/0.3581, allocations: 0.9917 MB / 0.5232 GB, free: 436 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 1.041e-05/0.3581, allocations: 0 / 0.5232 GB, free: 436 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.002e-05/0.3582, allocations: 2.25 kB / 0.5232 GB, free: 436 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008489/0.359, allocations: 421.1 kB / 0.5236 GB, free: 264 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.359, allocations: 0 / 0.5236 GB, free: 264 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.359, allocations: 0 / 0.5236 GB, free: 264 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.174e-05/0.359, allocations: 0 / 0.5236 GB, free: 264 kB / 382.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.000435/0.3595, allocations: 431.8 kB / 0.524 GB, free: 15.83 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.588e-05/0.3595, allocations: 9.781 kB / 0.524 GB, free: 15.83 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.747e-05/0.3596, allocations: 36.59 kB / 0.524 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.452e-05/0.3596, allocations: 0.9375 kB / 0.524 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001068/0.3597, allocations: 165.6 kB / 0.5242 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/0.3598, allocations: 1.656 kB / 0.5242 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.065e-06/0.3598, allocations: 1.531 kB / 0.5242 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.171e-05/0.3599, allocations: 33.47 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.3599, allocations: 0 / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.3599, allocations: 0 / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3599, allocations: 5.125 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.048e-05/0.36, allocations: 1.812 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001483/0.3601, allocations: 148 kB / 0.5244 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.087e-05/0.3602, allocations: 21.52 kB / 0.5244 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.83e-05/0.3602, allocations: 10.72 kB / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.414e-06/0.3602, allocations: 0 / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.815e-05/0.3603, allocations: 71 kB / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 8.61e-07/0.3603, allocations: 0 / 0.5245 GB, free: 15.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001672/0.3604, allocations: 65.23 kB / 0.5245 GB, free: 15.17 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.899e-05/0.3605, allocations: 81.75 kB / 0.5246 GB, free: 15.07 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.953e-05/0.3605, allocations: 91.05 kB / 0.5247 GB, free: 14.97 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.17e-05/0.3606, allocations: 25.7 kB / 0.5247 GB, free: 14.94 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.687e-05/0.3606, allocations: 84.69 kB / 0.5248 GB, free: 14.86 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.704e-05/0.3606, allocations: 3.312 kB / 0.5248 GB, free: 14.86 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.035e-05/0.3606, allocations: 16.67 kB / 0.5248 GB, free: 14.84 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.3608, allocations: 316.8 kB / 0.5251 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.007e-06/0.3608, allocations: 0 / 0.5251 GB, free: 14.52 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.432e-06/0.3608, allocations: 2.281 kB / 0.5251 GB, free: 14.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.679e-05/0.3608, allocations: 59.64 kB / 0.5252 GB, free: 14.45 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3608, allocations: 1.219 kB / 0.5252 GB, free: 14.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 6.923e-05/0.3609, allocations: 64.47 kB / 0.5252 GB, free: 14.38 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.409e-05/0.361, allocations: 36.34 kB / 0.5253 GB, free: 14.35 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.039e-06/0.361, allocations: 8.031 kB / 0.5253 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.361, allocations: 0 / 0.5253 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.361, allocations: 0.6562 kB / 0.5253 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.361, allocations: 1.531 kB / 0.5253 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.42e-05/0.361, allocations: 0 / 0.5253 GB, free: 14.34 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.853e-06/0.361, allocations: 2.062 kB / 0.5253 GB, free: 14.34 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.859e-05/0.3611, allocations: 133.4 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.306e-05/0.3611, allocations: 6.062 kB / 0.5254 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.392e-05/0.3612, allocations: 11.72 kB / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.754e-06/0.3612, allocations: 5.438 kB / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.3612, allocations: 0 / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.3612, allocations: 0.75 kB / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.534e-05/0.3613, allocations: 145.1 kB / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.3613, allocations: 1.406 kB / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.3613, allocations: 0 / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.3613, allocations: 3.938 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.784e-06/0.3613, allocations: 1.859 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3613, allocations: 0 / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.3613, allocations: 2.062 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.918e-05/0.3614, allocations: 95.84 kB / 0.5257 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.693e-05/0.3615, allocations: 85.52 kB / 0.5257 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.323e-05/0.3615, allocations: 1.891 kB / 0.5257 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.059e-05/0.3615, allocations: 5.438 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.052e-05/0.3615, allocations: 0.5625 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.587e-06/0.3615, allocations: 1.062 kB / 0.5258 GB, free: 13.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.58e-05/0.3616, allocations: 75.94 kB / 0.5258 GB, free: 13.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3616, allocations: 1.062 kB / 0.5258 GB, free: 13.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005147/0.3621, allocations: 145.2 kB / 0.526 GB, free: 13.66 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.001052/0.3632, allocations: 0.8907 MB / 0.5268 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001028/0.3633, allocations: 61.45 kB / 0.5269 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3633, allocations: 0 / 0.5269 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.578e-05/0.3633, allocations: 55.12 kB / 0.5269 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001318/0.3635, allocations: 9.766 kB / 0.527 GB, free: 12.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003983/0.3639, allocations: 174.9 kB / 0.5271 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002481/0.3641, allocations: 0.6754 MB / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.142e-06/0.3641, allocations: 0 / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.601e-05/0.3642, allocations: 10.8 kB / 0.5278 GB, free: 11.93 MB / 398.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3642, allocations: 0 / 0.5278 GB, free: 11.93 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03088/0.395, allocations: 5.317 MB / 0.533 GB, free: 9.418 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.779/8.174, allocations: 7.438 kB / 0.533 GB, free: 9.414 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexFunctions.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches