Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001592/0.001592, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001989/0.001989, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.55/1.55, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2481/0.2481, allocations: 46.93 MB / 360.8 MB, free: 4.172 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Math.TestNonlinear,fileNamePrefix="ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002544/0.002544, allocations: 79.88 kB / 0.4962 GB, free: 7.773 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3353, allocations: 66.09 MB / 0.5607 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Math.TestNonlinear): time 0.00164/0.337, allocations: 497 kB / 0.5612 GB, free: 3.805 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.003474/0.3405, allocations: 2.319 MB / 0.5635 GB, free: 1.469 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.438e-06/0.3405, allocations: 4 kB / 0.5635 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.238e-06/0.3405, allocations: 0 / 0.5635 GB, free: 1.465 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 1.202e-06/0.3405, allocations: 0 / 0.5635 GB, free: 1.465 MB / 398.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:8:5-88:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:90:5-160:27:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.quadratureLobatto2' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:162:5-239:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations1' contains a call to impure function 'Modelica.Utilities.Streams.print'. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/Math/Nonlinear.mo:241:5-319:33:writable] Warning: Pure function 'Modelica.Math.Nonlinear.Examples.solveNonlinearEquations2' contains a call to impure function 'Modelica.Utilities.Streams.print'. Notification: Performance of NFTyping.typeClassSections: time 0.002206/0.3427, allocations: 0.6353 MB / 0.5641 GB, free: 0.8359 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 4.788e-05/0.3427, allocations: 4 kB / 0.5641 GB, free: 0.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.846e-05/0.3428, allocations: 7.984 kB / 0.5641 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.3429, allocations: 19.92 kB / 0.5641 GB, free: 0.8047 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.237e-05/0.343, allocations: 8 kB / 0.5641 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-06/0.343, allocations: 0 / 0.5641 GB, free: 0.7969 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001318/0.3443, allocations: 0.6749 MB / 0.5648 GB, free: 124 kB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.161e-06/0.3443, allocations: 0 / 0.5648 GB, free: 124 kB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.028e-05/0.3443, allocations: 4 kB / 0.5648 GB, free: 120 kB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007432/0.3451, allocations: 439.2 kB / 0.5652 GB, free: 15.69 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.3451, allocations: 0 / 0.5652 GB, free: 15.69 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.3451, allocations: 3.938 kB / 0.5652 GB, free: 15.68 MB / 414.1 MB Notification: Performance of Transformations before backend: time 9.578e-06/0.3451, allocations: 4 kB / 0.5652 GB, free: 15.68 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0004321/0.3455, allocations: 359.3 kB / 0.5656 GB, free: 15.29 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.167e-05/0.3455, allocations: 8.031 kB / 0.5656 GB, free: 15.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.141e-05/0.3456, allocations: 114 kB / 0.5657 GB, free: 15.16 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.533e-05/0.3457, allocations: 80.22 kB / 0.5657 GB, free: 15.09 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001053/0.3458, allocations: 181.8 kB / 0.5659 GB, free: 14.88 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.907e-05/0.3459, allocations: 150.9 kB / 0.5661 GB, free: 14.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.79e-05/0.3459, allocations: 158.5 kB / 0.5662 GB, free: 14.58 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.459e-05/0.346, allocations: 101 kB / 0.5663 GB, free: 14.47 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.347e-05/0.346, allocations: 75.28 kB / 0.5664 GB, free: 14.4 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.368e-05/0.3461, allocations: 150.6 kB / 0.5665 GB, free: 14.25 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.913e-05/0.3462, allocations: 154.6 kB / 0.5667 GB, free: 14.1 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.537e-05/0.3462, allocations: 158.5 kB / 0.5668 GB, free: 13.94 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002924/0.3465, allocations: 413 kB / 0.5672 GB, free: 13.5 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001127/0.3467, allocations: 177.1 kB / 0.5674 GB, free: 13.31 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.865e-05/0.3467, allocations: 80.14 kB / 0.5675 GB, free: 13.23 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.3467, allocations: 79.28 kB / 0.5675 GB, free: 13.15 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.008e-05/0.3468, allocations: 135.5 kB / 0.5677 GB, free: 13 MB / 414.1 MB Notification: Performance of pre-optimization done (n=0): time 3.075e-06/0.3468, allocations: 11.86 kB / 0.5677 GB, free: 12.99 MB / 414.1 MB Notification: Performance of matching and sorting (n=0): time 7.612e-05/0.3469, allocations: 25.7 kB / 0.5677 GB, free: 12.96 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.643e-05/0.347, allocations: 156.4 kB / 0.5679 GB, free: 12.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.398e-05/0.347, allocations: 89.86 kB / 0.5679 GB, free: 12.69 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.347, allocations: 25.7 kB / 0.568 GB, free: 12.66 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.01e-05/0.3471, allocations: 84.14 kB / 0.568 GB, free: 12.57 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.984e-06/0.3471, allocations: 0 / 0.568 GB, free: 12.57 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.002e-05/0.3471, allocations: 17.7 kB / 0.5681 GB, free: 12.55 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.3472, allocations: 310.8 kB / 0.5684 GB, free: 12.24 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.699e-06/0.3473, allocations: 0 / 0.5684 GB, free: 12.24 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.382e-05/0.3473, allocations: 4 kB / 0.5684 GB, free: 12.23 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.944e-05/0.3473, allocations: 79.28 kB / 0.5684 GB, free: 12.16 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.279e-05/0.3473, allocations: 75.28 kB / 0.5685 GB, free: 12.08 MB / 414.1 MB Notification: Performance of matching and sorting (n=0) (initialization): time 6.202e-05/0.3474, allocations: 37.67 kB / 0.5685 GB, free: 12.04 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.3475, allocations: 83.28 kB / 0.5686 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.932e-05/0.3475, allocations: 79.3 kB / 0.5687 GB, free: 11.88 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.695e-05/0.3476, allocations: 158.5 kB / 0.5688 GB, free: 11.72 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.61e-05/0.3476, allocations: 79.27 kB / 0.5689 GB, free: 11.64 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.405e-05/0.3477, allocations: 150.6 kB / 0.5691 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.314e-05/0.3478, allocations: 79.22 kB / 0.5691 GB, free: 11.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.3478, allocations: 91.33 kB / 0.5692 GB, free: 11.33 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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 0.0001402/0.3479, allocations: 257.7 kB / 0.5695 GB, free: 11.07 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.95e-05/0.348, allocations: 116.9 kB / 0.5696 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.487e-05/0.3481, allocations: 111.8 kB / 0.5697 GB, free: 10.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.82e-05/0.3481, allocations: 176.3 kB / 0.5699 GB, free: 10.65 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.116e-05/0.3482, allocations: 192.1 kB / 0.57 GB, free: 10.45 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.6e-05/0.3483, allocations: 180.3 kB / 0.5702 GB, free: 10.27 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002386/0.3485, allocations: 376.2 kB / 0.5706 GB, free: 9.852 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.898e-05/0.3486, allocations: 105 kB / 0.5707 GB, free: 9.742 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.21e-05/0.3486, allocations: 101 kB / 0.5708 GB, free: 9.637 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.099e-05/0.3487, allocations: 184.2 kB / 0.5709 GB, free: 9.449 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.978e-05/0.3488, allocations: 180.3 kB / 0.5711 GB, free: 9.266 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.268e-05/0.3489, allocations: 184.2 kB / 0.5713 GB, free: 9.078 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.553e-05/0.3489, allocations: 180.2 kB / 0.5715 GB, free: 8.895 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001608/0.3491, allocations: 307.7 kB / 0.5718 GB, free: 8.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.3492, allocations: 109 kB / 0.5719 GB, free: 8.457 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.192e-05/0.3492, allocations: 192.1 kB / 0.572 GB, free: 8.262 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.181e-05/0.3493, allocations: 101 kB / 0.5721 GB, free: 8.156 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.06e-05/0.3494, allocations: 180.2 kB / 0.5723 GB, free: 7.973 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.425e-05/0.3495, allocations: 105 kB / 0.5724 GB, free: 7.863 MB / 414.1 MB Notification: Performance of sorting global known variables: time 3.833e-05/0.3495, allocations: 75.28 kB / 0.5725 GB, free: 7.789 MB / 414.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3495, allocations: 4 kB / 0.5725 GB, free: 7.785 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0005093/0.35, allocations: 143.6 kB / 0.5726 GB, free: 7.645 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * 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.001189/0.3512, allocations: 1.039 MB / 0.5736 GB, free: 6.578 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 5.261e-05/0.3512, allocations: 4 kB / 0.5736 GB, free: 6.574 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3512, allocations: 0 / 0.5736 GB, free: 6.574 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 1.393e-06/0.3512, allocations: 0 / 0.5736 GB, free: 6.574 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003669/0.3516, allocations: 459.7 kB / 0.5741 GB, free: 6.121 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004418/0.3521, allocations: 246 kB / 0.5743 GB, free: 5.84 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003121/0.3524, allocations: 0.669 MB / 0.575 GB, free: 5.145 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.754e-06/0.3524, allocations: 0 / 0.575 GB, free: 5.145 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.809e-05/0.3524, allocations: 11.44 kB / 0.575 GB, free: 5.133 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.3524, allocations: 0 / 0.575 GB, free: 5.133 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03337/0.3858, allocations: 4.299 MB / 0.5792 GB, free: 0.9336 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.49, allocations: 3.234 kB / 0.5792 GB, free: 0.9336 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat --tempDir=temp_ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear_fmu --startTime=0 --stopTime=0 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_ModelicaTest_Math_TestNonlinear.fmu > ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Math/TestNonlinear/TestNonlinear.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Math.TestNonlinear.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: 14.521185724064708]