Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.ComplexMath.TestComplexOperations,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations",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.001402/0.001402, allocations: 108.8 kB / 17.78 MB, free: 5.281 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.001499/0.001499, allocations: 180.9 kB / 18.71 MB, free: 4.359 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.372/1.372, allocations: 222.9 MB / 242.4 MB, free: 15.04 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.2157/0.2157, allocations: 44.19 MB / 336.8 MB, free: 2.652 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001351/0.001351, allocations: 67.89 kB / 470 MB, free: 13.7 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3271, allocations: 60.82 MB / 0.5184 GB, free: 3.285 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.00146/0.3286, allocations: 472.2 kB / 0.5188 GB, free: 3.008 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002762/0.3314, allocations: 2.286 MB / 0.5211 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.32e-05/0.3314, allocations: 0 / 0.5211 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.3314, allocations: 0 / 0.5211 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 5.2e-06/0.3315, 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.002364/0.3338, allocations: 1.133 MB / 0.5222 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 4.377e-05/0.3339, allocations: 1.75 kB / 0.5222 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.352e-05/0.3339, allocations: 1.781 kB / 0.5222 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.558e-05/0.3339, allocations: 1.094 kB / 0.5222 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.969e-05/0.334, allocations: 1.719 kB / 0.5222 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 5.671e-06/0.334, allocations: 4 kB / 0.5222 GB, free: 0.75 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001413/0.3354, allocations: 0.9947 MB / 0.5232 GB, free: 448 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.324e-06/0.3354, allocations: 1.25 kB / 0.5232 GB, free: 448 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 2.257e-05/0.3354, allocations: 0 / 0.5232 GB, free: 448 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005664/0.336, allocations: 417.4 kB / 0.5236 GB, free: 284 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.336, allocations: 0 / 0.5236 GB, free: 284 kB / 382.1 MB Notification: Performance of FrontEnd: time 2.504e-06/0.336, allocations: 0.5625 kB / 0.5236 GB, free: 284 kB / 382.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.336, allocations: 1.094 kB / 0.5236 GB, free: 284 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.0004091/0.3365, allocations: 442.2 kB / 0.524 GB, free: 15.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.3365, allocations: 9.969 kB / 0.524 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.219e-05/0.3365, allocations: 30.75 kB / 0.524 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.713e-05/0.3366, allocations: 6.859 kB / 0.524 GB, free: 15.79 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.453e-05/0.3367, allocations: 165 kB / 0.5242 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.144e-05/0.3367, allocations: 1.625 kB / 0.5242 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.523e-06/0.3367, allocations: 4.312 kB / 0.5242 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.42e-05/0.3368, allocations: 33.77 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.464e-06/0.3368, allocations: 0.6562 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.314e-06/0.3368, allocations: 1.281 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.3368, allocations: 8 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.841e-05/0.3369, allocations: 1.844 kB / 0.5242 GB, free: 15.55 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001295/0.337, allocations: 148.1 kB / 0.5244 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.089e-05/0.337, allocations: 16.89 kB / 0.5244 GB, free: 15.33 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.605e-05/0.3371, allocations: 10.61 kB / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.253e-06/0.3371, allocations: 1.125 kB / 0.5244 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.465e-05/0.3371, allocations: 65.91 kB / 0.5245 GB, free: 15.24 MB / 398.1 MB Notification: Performance of pre-optimization done (n=1): time 1.062e-06/0.3371, allocations: 0 / 0.5245 GB, free: 15.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001793/0.3373, allocations: 65.72 kB / 0.5245 GB, free: 15.18 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.878e-05/0.3374, allocations: 78.91 kB / 0.5246 GB, free: 15.08 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.872e-05/0.3374, allocations: 89.86 kB / 0.5247 GB, free: 14.98 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.3374, allocations: 25.7 kB / 0.5247 GB, free: 14.95 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.214e-05/0.3375, allocations: 81.94 kB / 0.5248 GB, free: 14.87 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.485e-05/0.3375, allocations: 0 / 0.5248 GB, free: 14.87 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.792e-05/0.3375, allocations: 13 kB / 0.5248 GB, free: 14.86 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001075/0.3376, allocations: 316.5 kB / 0.5251 GB, free: 14.54 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.174e-05/0.3377, allocations: 3.938 kB / 0.5251 GB, free: 14.54 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.081e-06/0.3377, allocations: 3.047 kB / 0.5251 GB, free: 14.54 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.487e-05/0.3377, allocations: 63.28 kB / 0.5252 GB, free: 14.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3377, allocations: 0 / 0.5252 GB, free: 14.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.744e-05/0.3378, allocations: 60.97 kB / 0.5252 GB, free: 14.4 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.038e-05/0.3379, allocations: 36.69 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.132e-06/0.3379, allocations: 4.094 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.617e-05/0.3379, allocations: 0 / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.617e-06/0.3379, allocations: 1.812 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.3379, allocations: 0 / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.879e-05/0.3379, allocations: 5.094 kB / 0.5253 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.338, allocations: 0.6562 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.669e-05/0.3381, allocations: 143.5 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.303e-05/0.3381, allocations: 9.578 kB / 0.5254 GB, free: 14.2 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.286e-05/0.3381, allocations: 15.61 kB / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.112e-06/0.3381, allocations: 4 kB / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.3381, allocations: 0 / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.3381, allocations: 2.391 kB / 0.5254 GB, free: 14.18 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.139e-05/0.3382, allocations: 144.9 kB / 0.5256 GB, free: 13.99 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.3382, allocations: 3.938 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.092e-06/0.3382, allocations: 0.7969 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.3382, allocations: 5.594 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.322e-06/0.3382, allocations: 0 / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.3382, allocations: 0.5625 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.3383, allocations: 1.562 kB / 0.5256 GB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.662e-05/0.3384, allocations: 91.11 kB / 0.5257 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.484e-05/0.3384, allocations: 84.17 kB / 0.5258 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.099e-05/0.3384, allocations: 0 / 0.5258 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.867e-06/0.3384, allocations: 1.688 kB / 0.5258 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.581e-05/0.3384, allocations: 4.562 kB / 0.5258 GB, free: 13.78 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.45e-06/0.3385, allocations: 2.359 kB / 0.5258 GB, free: 13.78 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.18e-05/0.3385, allocations: 79.22 kB / 0.5258 GB, free: 13.7 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3385, allocations: 32 / 0.5258 GB, free: 13.7 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004645/0.339, allocations: 148.7 kB / 0.526 GB, free: 13.65 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.0009484/0.3399, allocations: 0.8826 MB / 0.5269 GB, free: 12.94 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 9.277e-05/0.34, allocations: 61.55 kB / 0.5269 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.34, allocations: 1.375 kB / 0.5269 GB, free: 12.87 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 3.173e-05/0.3401, allocations: 58.75 kB / 0.527 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.0001192/0.3402, allocations: 2.062 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.0003654/0.3406, allocations: 170.9 kB / 0.5271 GB, free: 12.64 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002439/0.3408, allocations: 0.6754 MB / 0.5278 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 6.062e-06/0.3408, allocations: 1.375 kB / 0.5278 GB, free: 11.95 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.399e-05/0.3409, allocations: 8.812 kB / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of SimCode: time 2.11e-07/0.3409, allocations: 0 / 0.5278 GB, free: 11.94 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02638/0.3673, allocations: 5.317 MB / 0.533 GB, free: 9.414 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.859/8.226, allocations: 3.984 kB / 0.533 GB, free: 9.414 MB / 398.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv --start-time 0 --stop-time 0 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.csv","/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_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches