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.00177/0.00177, allocations: 109.2 kB / 20.43 MB, free: 1.473 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.002188/0.002188, allocations: 209.4 kB / 23.74 MB, free: 4.691 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.548/1.548, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.2788/0.2788, allocations: 44.91 MB / 358.8 MB, free: 6.316 MB / 286.1 MB " [Timeout remaining time 179] 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.003608/0.003608, allocations: 71.89 kB / 0.4931 GB, free: 10.77 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3783, allocations: 65.48 MB / 0.557 GB, free: 7.547 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Electrical.Analog.TestSaturatingInductor): time 0.003212/0.3815, allocations: 1.925 MB / 0.5589 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.3825, allocations: 0.6009 MB / 0.5595 GB, free: 5.266 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.056e-05/0.3826, allocations: 4 kB / 0.5595 GB, free: 5.262 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 4.859e-05/0.3826, allocations: 15.84 kB / 0.5595 GB, free: 5.246 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000193/0.3828, allocations: 39.64 kB / 0.5595 GB, free: 5.207 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002789/0.3831, allocations: 87.75 kB / 0.5596 GB, free: 5.121 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001989/0.3833, allocations: 163.5 kB / 0.5598 GB, free: 4.961 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000123/0.3834, allocations: 23.12 kB / 0.5598 GB, free: 4.938 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001988/0.3836, allocations: 79.7 kB / 0.5599 GB, free: 4.859 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.3837, allocations: 63.75 kB / 0.5599 GB, free: 4.797 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.619e-05/0.3838, allocations: 12 kB / 0.56 GB, free: 4.785 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.969e-05/0.3838, allocations: 12 kB / 0.56 GB, free: 4.773 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 3.216e-05/0.3838, allocations: 35.84 kB / 0.56 GB, free: 4.738 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.269e-05/0.3839, allocations: 63.72 kB / 0.5601 GB, free: 4.676 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002061/0.3841, allocations: 139.4 kB / 0.5602 GB, free: 4.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.3841, allocations: 0 / 0.5602 GB, free: 4.539 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3841, allocations: 4 kB / 0.5602 GB, free: 4.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.3841, allocations: 0 / 0.5602 GB, free: 4.535 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.0007982/0.3849, allocations: 377.8 kB / 0.5606 GB, free: 4.137 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.385, allocations: 8.031 kB / 0.5606 GB, free: 4.129 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.019e-05/0.385, allocations: 46.75 kB / 0.5606 GB, free: 4.074 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003024/0.3853, allocations: 40.81 kB / 0.5606 GB, free: 4.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000166/0.3855, allocations: 126.4 kB / 0.5608 GB, free: 3.887 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.3855, allocations: 8.375 kB / 0.5608 GB, free: 3.879 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.223e-05/0.3855, allocations: 12.38 kB / 0.5608 GB, free: 3.867 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003446/0.3859, allocations: 132.3 kB / 0.5609 GB, free: 3.723 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.207e-05/0.3859, allocations: 4 kB / 0.5609 GB, free: 3.719 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.777e-05/0.3859, allocations: 3.984 kB / 0.5609 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.959e-06/0.3859, allocations: 0 / 0.5609 GB, free: 3.715 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003386/0.3863, allocations: 99.86 kB / 0.561 GB, free: 3.617 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000851/0.3871, allocations: 426.4 kB / 0.5614 GB, free: 3.148 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.3874, allocations: 90.53 kB / 0.5615 GB, free: 3.051 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001472/0.3876, allocations: 36.92 kB / 0.5615 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.3876, allocations: 0 / 0.5615 GB, free: 3.012 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.171e-05/0.3876, allocations: 38.56 kB / 0.5616 GB, free: 2.965 MB / 398.1 MB Notification: Performance of pre-optimization done (n=4): time 8.92e-07/0.3876, allocations: 3.938 kB / 0.5616 GB, free: 2.961 MB / 398.1 MB Notification: Performance of matching and sorting (n=6): time 0.001376/0.389, allocations: 317.1 kB / 0.5619 GB, free: 2.645 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.802e-05/0.3891, allocations: 102.8 kB / 0.562 GB, free: 2.52 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001511/0.3892, allocations: 163.8 kB / 0.5621 GB, free: 2.352 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.528e-05/0.3893, allocations: 25.7 kB / 0.5622 GB, free: 2.32 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.947e-05/0.3893, allocations: 112.2 kB / 0.5623 GB, free: 2.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.3894, allocations: 19.8 kB / 0.5623 GB, free: 2.184 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.966e-05/0.3894, allocations: 33.64 kB / 0.5623 GB, free: 2.145 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.3896, allocations: 322.8 kB / 0.5626 GB, free: 1.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002303/0.3898, allocations: 63.89 kB / 0.5627 GB, free: 1.758 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002414/0.3901, allocations: 88.23 kB / 0.5628 GB, free: 1.656 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004256/0.3905, allocations: 142.4 kB / 0.5629 GB, free: 1.508 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/0.3905, allocations: 0 / 0.5629 GB, free: 1.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0005142/0.391, allocations: 177.5 kB / 0.5631 GB, free: 1.328 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.889e-05/0.391, allocations: 11.94 kB / 0.5631 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.679e-06/0.391, allocations: 0 / 0.5631 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.427e-05/0.391, allocations: 0 / 0.5631 GB, free: 1.316 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006041/0.3916, allocations: 87.97 kB / 0.5632 GB, free: 1.23 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001656/0.3933, allocations: 1.405 MB / 0.5645 GB, free: 15.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002181/0.3935, allocations: 24.09 kB / 0.5646 GB, free: 15.68 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.478e-05/0.3935, allocations: 7.938 kB / 0.5646 GB, free: 15.68 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.0001196/0.3936, allocations: 121.8 kB / 0.5647 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.723e-05/0.3937, allocations: 11.95 kB / 0.5647 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004995/0.3942, allocations: 170.3 kB / 0.5649 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.744e-06/0.3942, allocations: 0 / 0.5649 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.31e-07/0.3942, allocations: 0 / 0.5649 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.015e-06/0.3942, allocations: 0 / 0.5649 GB, free: 15.36 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008281/0.395, allocations: 437.4 kB / 0.5653 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.395, allocations: 0 / 0.5653 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001649/0.3952, allocations: 27.97 kB / 0.5653 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.3952, allocations: 0 / 0.5653 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.3952, allocations: 0 / 0.5653 GB, free: 14.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.3952, allocations: 7.938 kB / 0.5653 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.3952, allocations: 0 / 0.5653 GB, free: 14.85 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005267/0.3957, allocations: 267.2 kB / 0.5656 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.96e-05/0.3957, allocations: 7.953 kB / 0.5656 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.283e-05/0.3958, allocations: 4 kB / 0.5656 GB, free: 14.56 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002095/0.396, allocations: 27.91 kB / 0.5656 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.063e-05/0.396, allocations: 7.984 kB / 0.5656 GB, free: 14.53 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.603e-06/0.396, allocations: 0 / 0.5656 GB, free: 14.53 MB / 414.1 MB Notification: Performance of sorting global known variables: time 9.176e-05/0.3961, allocations: 116.6 kB / 0.5657 GB, free: 14.41 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3961, allocations: 4 kB / 0.5657 GB, free: 14.41 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002723/0.3964, allocations: 28 kB / 0.5658 GB, free: 14.38 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.0008317/0.3972, allocations: 0.7789 MB / 0.5665 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000858/0.3981, allocations: 168 kB / 0.5667 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.255e-06/0.3981, allocations: 0 / 0.5667 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002228/0.3983, allocations: 67.88 kB / 0.5667 GB, free: 13.34 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003478/0.3987, allocations: 18.28 kB / 0.5668 GB, free: 13.33 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003531/0.4022, allocations: 1.98 MB / 0.5687 GB, free: 11.25 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.4025, allocations: 0.7041 MB / 0.5694 GB, free: 10.52 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 6.907e-05/0.4026, allocations: 12.42 kB / 0.5694 GB, free: 10.51 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.709e-05/0.4027, allocations: 31.42 kB / 0.5694 GB, free: 10.48 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4027, allocations: 0 / 0.5694 GB, free: 10.48 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03049/0.4332, allocations: 3.27 MB / 0.5726 GB, free: 7.359 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.41/12.85, allocations: 11.8 kB / 0.5726 GB, free: 7.348 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.061861468013376]