Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001763/0.001763, allocations: 111.1 kB / 20.44 MB, free: 1.062 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001927/0.001927, allocations: 215.8 kB / 23.73 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.581/1.581, allocations: 230.6 MB / 257.5 MB, free: 7.809 MB / 206.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.2367/0.2367, allocations: 44.93 MB / 358.8 MB, free: 6.07 MB / 286.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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Electrical.Analog.TestSaturatingInductor,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002124/0.002124, allocations: 71.91 kB / 0.493 GB, free: 10.57 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3114/0.3136, allocations: 65.47 MB / 0.557 GB, free: 7.348 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003384/0.3169, allocations: 1.847 MB / 0.5588 GB, free: 5.691 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001091/0.318, allocations: 0.562 MB / 0.5593 GB, free: 5.125 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.652e-05/0.3181, allocations: 0 / 0.5593 GB, free: 5.125 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 5.663e-05/0.3181, allocations: 15.84 kB / 0.5593 GB, free: 5.109 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001816/0.3183, allocations: 35.72 kB / 0.5594 GB, free: 5.074 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002747/0.3186, allocations: 99.62 kB / 0.5595 GB, free: 4.98 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001893/0.3188, allocations: 151.4 kB / 0.5596 GB, free: 4.832 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001136/0.3189, allocations: 23.12 kB / 0.5596 GB, free: 4.809 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001968/0.3191, allocations: 75.7 kB / 0.5597 GB, free: 4.734 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001063/0.3192, allocations: 59.75 kB / 0.5597 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.925e-05/0.3192, allocations: 12 kB / 0.5598 GB, free: 4.664 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.899e-05/0.3193, allocations: 16 kB / 0.5598 GB, free: 4.648 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.724e-05/0.3193, allocations: 35.89 kB / 0.5598 GB, free: 4.613 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 5.872e-05/0.3194, allocations: 47.73 kB / 0.5599 GB, free: 4.566 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002163/0.3196, allocations: 151.4 kB / 0.56 GB, free: 4.418 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3196, allocations: 4 kB / 0.56 GB, free: 4.414 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.3196, allocations: 0 / 0.56 GB, free: 4.414 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.668e-06/0.3196, allocations: 0 / 0.56 GB, free: 4.414 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.000757/0.3204, allocations: 369.8 kB / 0.5604 GB, free: 4.023 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.943e-05/0.3204, allocations: 12.03 kB / 0.5604 GB, free: 4.012 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.708e-05/0.3205, allocations: 42.73 kB / 0.5604 GB, free: 3.961 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002815/0.3207, allocations: 40.83 kB / 0.5604 GB, free: 3.922 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001507/0.3209, allocations: 130.4 kB / 0.5606 GB, free: 3.77 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.646e-05/0.3209, allocations: 12.38 kB / 0.5606 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.823e-05/0.3209, allocations: 8.312 kB / 0.5606 GB, free: 3.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.3213, allocations: 198.1 kB / 0.5608 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.3213, allocations: 0 / 0.5608 GB, free: 3.531 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.3213, allocations: 4 kB / 0.5608 GB, free: 3.527 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.3214, allocations: 3.938 kB / 0.5608 GB, free: 3.523 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003321/0.3217, allocations: 95.83 kB / 0.5609 GB, free: 3.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008261/0.3225, allocations: 394.6 kB / 0.5613 GB, free: 2.992 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003145/0.3228, allocations: 90.45 kB / 0.5613 GB, free: 2.895 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.323, allocations: 40.92 kB / 0.5614 GB, free: 2.852 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.701e-05/0.323, allocations: 4 kB / 0.5614 GB, free: 2.848 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.323, allocations: 30.56 kB / 0.5614 GB, free: 2.809 MB / 398.1 MB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.323, allocations: 0 / 0.5614 GB, free: 2.809 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.001372/0.3244, allocations: 333 kB / 0.5617 GB, free: 2.477 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.807e-05/0.3245, allocations: 106.8 kB / 0.5618 GB, free: 2.348 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001541/0.3246, allocations: 152.1 kB / 0.562 GB, free: 2.191 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.3246, allocations: 25.7 kB / 0.562 GB, free: 2.16 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.929e-05/0.3247, allocations: 112.2 kB / 0.5621 GB, free: 2.043 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.763e-05/0.3248, allocations: 23.78 kB / 0.5621 GB, free: 2.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.329e-05/0.3248, allocations: 29.7 kB / 0.5622 GB, free: 1.984 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.325, allocations: 326.8 kB / 0.5625 GB, free: 1.656 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002412/0.3252, allocations: 59.95 kB / 0.5625 GB, free: 1.598 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002828/0.3255, allocations: 147.6 kB / 0.5627 GB, free: 1.426 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004453/0.326, allocations: 134.5 kB / 0.5628 GB, free: 1.285 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.42e-07/0.326, allocations: 0 / 0.5628 GB, free: 1.285 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005324/0.3265, allocations: 173.5 kB / 0.563 GB, free: 1.109 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.3265, allocations: 7.938 kB / 0.563 GB, free: 1.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.851e-06/0.3265, allocations: 4 kB / 0.563 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.3265, allocations: 0 / 0.563 GB, free: 1.098 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005911/0.3271, allocations: 91.91 kB / 0.5631 GB, free: 1.008 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0015/0.3286, allocations: 1.389 MB / 0.5644 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002285/0.3288, allocations: 32.19 kB / 0.5644 GB, free: 15.47 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.359e-05/0.3289, allocations: 3.938 kB / 0.5645 GB, free: 15.46 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * 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 (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.329, allocations: 117.8 kB / 0.5646 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.894e-05/0.329, allocations: 7.953 kB / 0.5646 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005246/0.3295, allocations: 178.2 kB / 0.5647 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.3295, allocations: 0 / 0.5647 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.32e-07/0.3295, allocations: 0 / 0.5647 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.3295, allocations: 4 kB / 0.5647 GB, free: 15.15 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008244/0.3304, allocations: 417.5 kB / 0.5651 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.3304, allocations: 3.938 kB / 0.5651 GB, free: 14.69 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001629/0.3305, allocations: 23.97 kB / 0.5652 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.3305, allocations: 4 kB / 0.5652 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.939e-06/0.3305, allocations: 0 / 0.5652 GB, free: 14.66 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.35e-06/0.3305, allocations: 7.922 kB / 0.5652 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3305, allocations: 0 / 0.5652 GB, free: 14.65 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005365/0.3311, allocations: 255.6 kB / 0.5654 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.296e-05/0.3311, allocations: 11.94 kB / 0.5654 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.3311, allocations: 0 / 0.5654 GB, free: 14.38 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.3313, allocations: 31.91 kB / 0.5655 GB, free: 14.34 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.114e-05/0.3314, allocations: 11.98 kB / 0.5655 GB, free: 14.33 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.3314, allocations: 3.938 kB / 0.5655 GB, free: 14.33 MB / 414.1 MB Notification: Performance of sorting global known variables: time 8.972e-05/0.3315, allocations: 109.7 kB / 0.5656 GB, free: 14.22 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3315, allocations: 0 / 0.5656 GB, free: 14.22 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002724/0.3318, allocations: 28 kB / 0.5656 GB, free: 14.2 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 (7): * Single equations (assignments): 7 * 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.0008339/0.3326, allocations: 0.7751 MB / 0.5664 GB, free: 13.39 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008988/0.3335, allocations: 183.8 kB / 0.5665 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 6.082e-06/0.3335, allocations: 4 kB / 0.5665 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002386/0.3337, allocations: 59.89 kB / 0.5666 GB, free: 13.15 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003327/0.3341, allocations: 20.22 kB / 0.5666 GB, free: 13.13 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00358/0.3376, allocations: 1.98 MB / 0.5686 GB, free: 11.05 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.5e-05/0.3377, allocations: 84.19 kB / 0.5686 GB, free: 10.95 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.912e-05/0.3378, allocations: 20.41 kB / 0.5687 GB, free: 10.93 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.55e-05/0.3379, allocations: 31.42 kB / 0.5687 GB, free: 10.9 MB / 414.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3379, allocations: 0 / 0.5687 GB, free: 10.9 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03117/0.3691, allocations: 3.829 MB / 0.5724 GB, free: 7.215 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/12.98, allocations: 10.27 kB / 0.5724 GB, free: 7.211 MB / 414.1 MB " [Timeout remaining time 647] (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-05 ModelicaTest_4_0_0_ModelicaTest_Electrical_Analog_TestSaturatingInductor.fmu > ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Electrical/Analog/TestSaturatingInductor/TestSaturatingInductor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Analog.TestSaturatingInductor.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: 16.00315978936851]