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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001263/0.001263, allocations: 119 kB / 18.5 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001495/0.001495, allocations: 190.9 kB / 21.44 MB, free: 1.633 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.45/1.45, allocations: 225.6 MB / 249.8 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2299/0.2299, allocations: 44.91 MB / 349.6 MB, free: 1.711 MB / 270.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 63.48 kB / 491.7 MB, free: 30.15 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1146, allocations: 64.27 MB / 0.543 GB, free: 4.133 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexFunctions): time 0.001542/0.1162, allocations: 479.8 kB / 0.5434 GB, free: 3.66 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003448/0.1196, allocations: 2.299 MB / 0.5457 GB, free: 1.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.389e-05/0.1196, allocations: 4 kB / 0.5457 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.071e-05/0.1197, allocations: 0 / 0.5457 GB, free: 1.336 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.48e-06/0.1197, allocations: 0 / 0.5457 GB, free: 1.336 MB / 398.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.002625/0.1223, allocations: 1.136 MB / 0.5468 GB, free: 204 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.852e-05/0.1223, allocations: 8 kB / 0.5468 GB, free: 196 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 2.784e-05/0.1224, allocations: 0 / 0.5468 GB, free: 196 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.302e-05/0.1224, allocations: 4 kB / 0.5468 GB, free: 192 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.7e-05/0.1224, allocations: 4 kB / 0.5468 GB, free: 188 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.27e-06/0.1224, allocations: 0 / 0.5468 GB, free: 188 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001536/0.1239, allocations: 0.9911 MB / 0.5478 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 1.175e-05/0.124, allocations: 4 kB / 0.5478 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 2.088e-05/0.124, allocations: 0 / 0.5478 GB, free: 15.19 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005755/0.1245, allocations: 423.4 kB / 0.5482 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.1246, allocations: 0 / 0.5482 GB, free: 14.77 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1246, allocations: 0 / 0.5482 GB, free: 14.77 MB / 414.1 MB Notification: Performance of Transformations before backend: time 1.858e-05/0.1246, allocations: 4 kB / 0.5482 GB, free: 14.77 MB / 414.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.0004605/0.125, allocations: 428.5 kB / 0.5486 GB, free: 14.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.918e-05/0.1251, allocations: 8.031 kB / 0.5486 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.223e-05/0.1251, allocations: 34.73 kB / 0.5486 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.411e-05/0.1251, allocations: 4.938 kB / 0.5486 GB, free: 14.24 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001208/0.1252, allocations: 168.3 kB / 0.5488 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.1253, allocations: 4.312 kB / 0.5488 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.04e-05/0.1253, allocations: 384 / 0.5488 GB, free: 14.04 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.206e-05/0.1254, allocations: 37.83 kB / 0.5488 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.063e-06/0.1254, allocations: 0 / 0.5488 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.004e-06/0.1254, allocations: 0 / 0.5488 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.1254, allocations: 4 kB / 0.5488 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.535e-05/0.1254, allocations: 0 / 0.5488 GB, free: 13.99 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001526/0.1255, allocations: 149.7 kB / 0.549 GB, free: 13.79 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.852e-05/0.1256, allocations: 22.52 kB / 0.549 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.443e-05/0.1256, allocations: 4.859 kB / 0.549 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.768e-06/0.1256, allocations: 4 kB / 0.549 GB, free: 13.75 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.253e-05/0.1257, allocations: 64.27 kB / 0.5491 GB, free: 13.67 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.21e-07/0.1257, allocations: 0 / 0.5491 GB, free: 13.67 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001611/0.1258, allocations: 63.39 kB / 0.5491 GB, free: 13.6 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.42e-05/0.1259, allocations: 77.11 kB / 0.5492 GB, free: 13.5 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.404e-05/0.126, allocations: 93.86 kB / 0.5493 GB, free: 13.4 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.126, allocations: 25.7 kB / 0.5493 GB, free: 13.37 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.334e-05/0.126, allocations: 84.08 kB / 0.5494 GB, free: 13.29 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.126, allocations: 4.125 kB / 0.5494 GB, free: 13.28 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.984e-05/0.1261, allocations: 13.72 kB / 0.5494 GB, free: 13.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1262, allocations: 314.8 kB / 0.5497 GB, free: 12.95 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.096e-05/0.1262, allocations: 3.984 kB / 0.5497 GB, free: 12.94 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.455e-06/0.1262, allocations: 4 kB / 0.5497 GB, free: 12.94 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.176e-05/0.1263, allocations: 60.27 kB / 0.5498 GB, free: 12.86 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1263, allocations: 0 / 0.5498 GB, free: 12.86 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.291e-05/0.1263, allocations: 63.47 kB / 0.5498 GB, free: 12.79 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.619e-05/0.1264, allocations: 41.62 kB / 0.5499 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.1264, allocations: 0 / 0.5499 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.009e-05/0.1264, allocations: 0 / 0.5499 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.1264, allocations: 0 / 0.5499 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.907e-06/0.1264, allocations: 0 / 0.5499 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.303e-05/0.1264, allocations: 0 / 0.5499 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.23e-06/0.1264, allocations: 3.938 kB / 0.5499 GB, free: 12.74 MB / 414.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 9.155e-05/0.1265, allocations: 135.5 kB / 0.55 GB, free: 12.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.153e-05/0.1265, allocations: 11.92 kB / 0.55 GB, free: 12.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.318e-06/0.1265, allocations: 7.062 kB / 0.55 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-06/0.1265, allocations: 0 / 0.55 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.1265, allocations: 4 kB / 0.55 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.1265, allocations: 0 / 0.55 GB, free: 12.57 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001166/0.1267, allocations: 149.7 kB / 0.5502 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.1267, allocations: 0 / 0.5502 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-07/0.1267, allocations: 0 / 0.5502 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.1267, allocations: 3.938 kB / 0.5502 GB, free: 12.37 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.303e-06/0.1267, allocations: 4 kB / 0.5502 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.1267, allocations: 0 / 0.5502 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1267, allocations: 4 kB / 0.5502 GB, free: 12.36 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000111/0.1268, allocations: 86.83 kB / 0.5503 GB, free: 12.25 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.397e-05/0.1268, allocations: 85.05 kB / 0.5504 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.018e-05/0.1268, allocations: 0 / 0.5504 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.895e-06/0.1268, allocations: 0 / 0.5504 GB, free: 12.15 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.18e-05/0.1269, allocations: 15.91 kB / 0.5504 GB, free: 12.13 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.425e-06/0.1269, allocations: 0 / 0.5504 GB, free: 12.13 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.991e-05/0.1269, allocations: 83.31 kB / 0.5505 GB, free: 12.05 MB / 414.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1269, allocations: 0 / 0.5505 GB, free: 12.05 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.000397/0.1273, allocations: 135.6 kB / 0.5506 GB, free: 11.92 MB / 414.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.0009928/0.1283, allocations: 0.8896 MB / 0.5515 GB, free: 11 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.81e-05/0.1284, allocations: 63.39 kB / 0.5515 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.1284, allocations: 0 / 0.5515 GB, free: 10.92 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 5.175e-05/0.1285, allocations: 63.41 kB / 0.5516 GB, free: 10.85 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001185/0.1286, allocations: 4 kB / 0.5516 GB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003689/0.1289, allocations: 174.2 kB / 0.5517 GB, free: 10.63 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003145/0.1293, allocations: 0.6727 MB / 0.5524 GB, free: 9.934 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.234e-06/0.1293, allocations: 4 kB / 0.5524 GB, free: 9.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.221e-05/0.1293, allocations: 7.438 kB / 0.5524 GB, free: 9.922 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1293, allocations: 0 / 0.5524 GB, free: 9.922 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02558/0.1549, allocations: 5.323 MB / 0.5576 GB, free: 4.688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.413/8.568, allocations: 8 kB / 0.5576 GB, free: 4.68 MB / 414.1 MB " [Timeout remaining time 651] (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) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexFunctions/TestComplexFunctions.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexFunctions.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.404408760834485]