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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001339/0.001339, allocations: 116.7 kB / 18.5 MB, free: 4.582 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.001504/0.001504, allocations: 189.2 kB / 21.44 MB, free: 1.645 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.488/1.488, allocations: 225.6 MB / 249.8 MB, free: 3.633 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.2288/0.2288, allocations: 44.91 MB / 349.6 MB, free: 1.762 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.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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 70.7 kB / 491.7 MB, free: 29.86 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1213/0.1232, allocations: 64.25 MB / 0.543 GB, free: 4.191 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.ComplexMath.TestComplexOperations): time 0.001589/0.1248, allocations: 477 kB / 0.5434 GB, free: 3.719 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003654/0.1284, allocations: 2.299 MB / 0.5457 GB, free: 1.398 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.205e-05/0.1285, allocations: 4 kB / 0.5457 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 1.366e-05/0.1285, allocations: 0 / 0.5457 GB, free: 1.395 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 5.27e-06/0.1285, allocations: 0 / 0.5457 GB, free: 1.395 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.002672/0.1312, allocations: 1.128 MB / 0.5468 GB, free: 272 kB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.637e-05/0.1312, allocations: 8 kB / 0.5468 GB, free: 264 kB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.978e-05/0.1312, allocations: 7.938 kB / 0.5468 GB, free: 256 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.489e-05/0.1313, allocations: 3.984 kB / 0.5468 GB, free: 252 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.051e-05/0.1313, allocations: 4 kB / 0.5468 GB, free: 248 kB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.009e-06/0.1313, allocations: 3.938 kB / 0.5468 GB, free: 244 kB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001498/0.1328, allocations: 0.9834 MB / 0.5478 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.164e-06/0.1328, allocations: 0 / 0.5478 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 1.73e-05/0.1328, allocations: 4 kB / 0.5478 GB, free: 15.25 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005635/0.1334, allocations: 419.4 kB / 0.5482 GB, free: 14.84 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1334, allocations: 4 kB / 0.5482 GB, free: 14.84 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.1334, allocations: 0 / 0.5482 GB, free: 14.84 MB / 414.1 MB Notification: Performance of Transformations before backend: time 4.558e-06/0.1334, allocations: 4 kB / 0.5482 GB, free: 14.83 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.000474/0.1339, allocations: 432.5 kB / 0.5486 GB, free: 14.36 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.1339, allocations: 8.031 kB / 0.5486 GB, free: 14.35 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.895e-05/0.1339, allocations: 34.75 kB / 0.5486 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.69e-05/0.134, allocations: 0.9375 kB / 0.5486 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001158/0.1341, allocations: 172.3 kB / 0.5488 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.043e-05/0.1341, allocations: 384 / 0.5488 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.002e-06/0.1341, allocations: 384 / 0.5488 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.176e-05/0.1342, allocations: 37.83 kB / 0.5488 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.1342, allocations: 0 / 0.5488 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.592e-06/0.1342, allocations: 0 / 0.5488 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.777e-06/0.1342, allocations: 0 / 0.5488 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 1.876e-05/0.1342, allocations: 3.938 kB / 0.5488 GB, free: 14.05 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001506/0.1344, allocations: 145.7 kB / 0.549 GB, free: 13.86 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.403e-05/0.1344, allocations: 22.61 kB / 0.549 GB, free: 13.83 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.343e-05/0.1344, allocations: 4.859 kB / 0.549 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.163e-06/0.1344, allocations: 4 kB / 0.549 GB, free: 13.82 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.973e-05/0.1345, allocations: 64.27 kB / 0.5491 GB, free: 13.74 MB / 414.1 MB Notification: Performance of pre-optimization done (n=1): time 9.72e-07/0.1345, allocations: 0 / 0.5491 GB, free: 13.74 MB / 414.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001633/0.1347, allocations: 67.33 kB / 0.5491 GB, free: 13.66 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.006e-05/0.1347, allocations: 77.11 kB / 0.5492 GB, free: 13.57 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.956e-05/0.1348, allocations: 93.86 kB / 0.5493 GB, free: 13.46 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.097e-05/0.1348, allocations: 25.7 kB / 0.5493 GB, free: 13.43 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.388e-05/0.1348, allocations: 80.27 kB / 0.5494 GB, free: 13.35 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.309e-05/0.1348, allocations: 4 kB / 0.5494 GB, free: 13.35 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.708e-05/0.1349, allocations: 13.72 kB / 0.5494 GB, free: 13.33 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001358/0.135, allocations: 310.8 kB / 0.5497 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-06/0.135, allocations: 0 / 0.5497 GB, free: 13.02 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.859e-06/0.135, allocations: 0 / 0.5497 GB, free: 13.02 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.005e-05/0.1351, allocations: 68.25 kB / 0.5498 GB, free: 12.93 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.1351, allocations: 0 / 0.5498 GB, free: 12.93 MB / 414.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 7.558e-05/0.1351, allocations: 67.41 kB / 0.5498 GB, free: 12.86 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.1352, allocations: 33.64 kB / 0.5499 GB, free: 12.82 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.1352, allocations: 4 kB / 0.5499 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.151e-05/0.1352, allocations: 0 / 0.5499 GB, free: 12.81 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.857e-06/0.1352, allocations: 7.922 kB / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.697e-06/0.1352, allocations: 0 / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.32e-05/0.1352, allocations: 0 / 0.5499 GB, free: 12.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.1352, allocations: 3.984 kB / 0.5499 GB, free: 12.8 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.649e-05/0.1353, allocations: 135.5 kB / 0.55 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.13e-05/0.1353, allocations: 11.92 kB / 0.55 GB, free: 12.64 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.426e-05/0.1353, allocations: 11.06 kB / 0.55 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.072e-06/0.1353, allocations: 0 / 0.55 GB, free: 12.63 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.52e-06/0.1353, allocations: 3.984 kB / 0.55 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.1354, allocations: 8 kB / 0.55 GB, free: 12.62 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001157/0.1355, allocations: 149.7 kB / 0.5502 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.51e-07/0.1355, allocations: 0 / 0.5502 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.31e-07/0.1355, allocations: 0 / 0.5502 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.1355, allocations: 3.938 kB / 0.5502 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-06/0.1355, allocations: 0 / 0.5502 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.61e-07/0.1355, allocations: 4 kB / 0.5502 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1355, allocations: 4 kB / 0.5502 GB, free: 12.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001007/0.1356, allocations: 90.77 kB / 0.5503 GB, free: 12.3 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.502e-05/0.1356, allocations: 85.05 kB / 0.5504 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.1356, allocations: 0 / 0.5504 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.185e-06/0.1357, allocations: 0 / 0.5504 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.788e-06/0.1357, allocations: 0 / 0.5504 GB, free: 12.2 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-06/0.1357, allocations: 0 / 0.5504 GB, free: 12.2 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.435e-05/0.1357, allocations: 79.31 kB / 0.5504 GB, free: 12.12 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1357, allocations: 4 kB / 0.5504 GB, free: 12.11 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004114/0.1361, allocations: 139.6 kB / 0.5506 GB, free: 11.98 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.00106/0.1372, allocations: 0.8871 MB / 0.5514 GB, free: 11.06 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 9.812e-05/0.1373, allocations: 63.39 kB / 0.5515 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.1373, allocations: 0 / 0.5515 GB, free: 10.98 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 3.676e-05/0.1373, allocations: 63.41 kB / 0.5516 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001219/0.1374, allocations: 6.109 kB / 0.5516 GB, free: 10.91 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00037/0.1378, allocations: 170.2 kB / 0.5517 GB, free: 10.7 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003806/0.1382, allocations: 0.6766 MB / 0.5524 GB, free: 9.996 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.093e-06/0.1382, allocations: 4 kB / 0.5524 GB, free: 9.992 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.307e-05/0.1382, allocations: 7.438 kB / 0.5524 GB, free: 9.984 MB / 414.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1382, allocations: 0 / 0.5524 GB, free: 9.984 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02778/0.166, allocations: 5.328 MB / 0.5576 GB, free: 4.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.355/8.521, allocations: 8.047 kB / 0.5576 GB, free: 4.742 MB / 414.1 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_ComplexMath_TestComplexOperations.fmu > ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/ComplexMath/TestComplexOperations/TestComplexOperations.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.ComplexMath.TestComplexOperations.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.430972937028855]