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.001121/0.001121, allocations: 106.4 kB / 17.77 MB, free: 5.273 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.001193/0.001193, allocations: 187.9 kB / 18.71 MB, free: 4.348 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.381/1.381, allocations: 222.9 MB / 242.4 MB, free: 15.09 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.2146/0.2146, allocations: 44.19 MB / 336.8 MB, free: 2.664 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001489/0.001489, allocations: 63.91 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3189, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001438/0.3204, allocations: 475.8 kB / 0.5188 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002682/0.3231, allocations: 2.281 MB / 0.5211 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.36e-05/0.3231, allocations: 1.469 kB / 0.5211 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.551e-05/0.3231, allocations: 0 / 0.5211 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.791e-06/0.3232, allocations: 0 / 0.5211 GB, free: 1.398 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.002449/0.3256, allocations: 1.134 MB / 0.5222 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.708e-05/0.3257, allocations: 1.406 kB / 0.5222 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.773e-05/0.3257, allocations: 6.516 kB / 0.5222 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.39e-05/0.3257, allocations: 1.531 kB / 0.5222 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.965e-05/0.3257, allocations: 4 kB / 0.5222 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.21e-06/0.3258, allocations: 0 / 0.5222 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001451/0.3272, allocations: 0.9875 MB / 0.5232 GB, free: 452 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.136e-06/0.3272, allocations: 3.984 kB / 0.5232 GB, free: 448 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 1.776e-05/0.3273, allocations: 1.469 kB / 0.5232 GB, free: 448 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000548/0.3278, allocations: 417.6 kB / 0.5236 GB, free: 280 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.3278, allocations: 0 / 0.5236 GB, free: 280 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3278, allocations: 0 / 0.5236 GB, free: 280 kB / 382.1 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.3278, allocations: 5.219 kB / 0.5236 GB, free: 276 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.0003626/0.3282, allocations: 421.5 kB / 0.524 GB, free: 15.85 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.3283, allocations: 9.594 kB / 0.524 GB, free: 15.85 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.541e-05/0.3283, allocations: 35.31 kB / 0.524 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.276e-05/0.3283, allocations: 8.812 kB / 0.524 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.065e-05/0.3284, allocations: 161.6 kB / 0.5242 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.3284, allocations: 1.219 kB / 0.5242 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.454e-06/0.3285, allocations: 1.531 kB / 0.5242 GB, free: 15.6 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.105e-05/0.3285, allocations: 41.34 kB / 0.5242 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.202e-06/0.3286, allocations: 0 / 0.5242 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.106e-05/0.3286, allocations: 5.891 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.3286, allocations: 4 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.95e-05/0.3286, allocations: 9.594 kB / 0.5242 GB, free: 15.54 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001239/0.3287, allocations: 145.1 kB / 0.5244 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.465e-05/0.3288, allocations: 16.88 kB / 0.5244 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.39e-05/0.3288, allocations: 6.484 kB / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.578e-06/0.3288, allocations: 0.75 kB / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.481e-05/0.3289, allocations: 65.89 kB / 0.5245 GB, free: 15.25 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 2.665e-06/0.3289, allocations: 4 kB / 0.5245 GB, free: 15.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001555/0.329, allocations: 65.28 kB / 0.5245 GB, free: 15.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.556e-05/0.3291, allocations: 78.77 kB / 0.5246 GB, free: 15.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.412e-05/0.3291, allocations: 89.86 kB / 0.5247 GB, free: 14.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.296e-05/0.3291, allocations: 28.02 kB / 0.5247 GB, free: 14.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.305e-05/0.3292, allocations: 80.8 kB / 0.5248 GB, free: 14.87 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.758e-05/0.3292, allocations: 2.25 kB / 0.5248 GB, free: 14.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.691e-05/0.3292, allocations: 17.59 kB / 0.5248 GB, free: 14.85 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001015/0.3293, allocations: 315.7 kB / 0.5251 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.977e-06/0.3294, allocations: 0 / 0.5251 GB, free: 14.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.199e-06/0.3294, allocations: 2.594 kB / 0.5251 GB, free: 14.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.062e-05/0.3294, allocations: 61.39 kB / 0.5252 GB, free: 14.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.3294, allocations: 0 / 0.5252 GB, free: 14.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.729e-05/0.3295, allocations: 66.84 kB / 0.5252 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.318e-05/0.3296, allocations: 35 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.3296, allocations: 1.375 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.3296, allocations: 0.75 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.12e-07/0.3296, allocations: 4 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.242e-06/0.3296, allocations: 1.375 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.587e-05/0.3296, allocations: 0.8438 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.632e-06/0.3297, allocations: 1.375 kB / 0.5253 GB, free: 14.36 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.563e-05/0.3297, allocations: 134.1 kB / 0.5254 GB, free: 14.21 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.024e-05/0.3298, allocations: 9.25 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.176e-05/0.3298, allocations: 7.688 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.182e-06/0.3298, allocations: 1.375 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3298, allocations: 4.703 kB / 0.5254 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.525e-06/0.3298, allocations: 0 / 0.5254 GB, free: 14.19 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.937e-05/0.3299, allocations: 148.9 kB / 0.5256 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.3299, allocations: 6.062 kB / 0.5256 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.3299, allocations: 0 / 0.5256 GB, free: 14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.795e-06/0.3299, allocations: 3.938 kB / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.173e-06/0.3299, allocations: 2.031 kB / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.3299, allocations: 0 / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.263e-06/0.33, allocations: 1.375 kB / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.593e-05/0.3301, allocations: 96.64 kB / 0.5257 GB, free: 13.89 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.438e-05/0.3301, allocations: 85.75 kB / 0.5258 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.23e-05/0.3301, allocations: 2.734 kB / 0.5258 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.596e-06/0.3301, allocations: 0 / 0.5258 GB, free: 13.79 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.329e-05/0.3302, allocations: 5.375 kB / 0.5258 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.667e-06/0.3302, allocations: 1.375 kB / 0.5258 GB, free: 13.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 2.765e-05/0.3302, allocations: 75.28 kB / 0.5258 GB, free: 13.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3302, allocations: 0 / 0.5258 GB, free: 13.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004838/0.3307, allocations: 141.9 kB / 0.526 GB, free: 13.67 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.00121/0.3319, allocations: 0.8968 MB / 0.5268 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001209/0.332, allocations: 56.94 kB / 0.5269 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.3321, allocations: 1.125 kB / 0.5269 GB, free: 12.88 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.982e-05/0.3321, allocations: 54.98 kB / 0.527 GB, free: 12.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001376/0.3323, allocations: 6.781 kB / 0.527 GB, free: 12.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004311/0.3327, allocations: 176.5 kB / 0.5271 GB, free: 12.65 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002976/0.333, allocations: 0.679 MB / 0.5278 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.071e-06/0.333, allocations: 0 / 0.5278 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.622e-05/0.3331, allocations: 8.531 kB / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of SimCode: time 1.9e-07/0.3331, allocations: 0 / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0264/0.3595, allocations: 5.313 MB / 0.533 GB, free: 9.422 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.986/8.346, allocations: 5.156 kB / 0.533 GB, free: 9.418 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