Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.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.001316/0.001316, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001397/0.001397, allocations: 190.8 kB / 23.71 MB, free: 4.406 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.475/1.475, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.1 MB " [Timeout remaining time 178] 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001723/0.001723, allocations: 43.92 kB / 370.4 MB, free: 9.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2782/0.28, allocations: 52.18 MB / 422.6 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.02948/0.3095, allocations: 23.18 MB / 445.8 MB, free: 7.086 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01841/0.3279, allocations: 7.739 MB / 453.5 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00568/0.3335, allocations: 238.8 kB / 453.8 MB, free: 15.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02297/0.3565, allocations: 8.744 MB / 462.5 MB, free: 6.324 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01254/0.369, allocations: 3.381 MB / 465.9 MB, free: 2.934 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006234/0.3753, allocations: 1.796 MB / 467.7 MB, free: 1.148 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01793/0.3932, allocations: 12.25 MB / 479.9 MB, free: 4.852 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02897/0.4222, allocations: 15.83 MB / 495.8 MB, free: 4.832 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01098/0.4332, allocations: 6.648 MB / 0.4906 GB, free: 14.17 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01255/0.4457, allocations: 6.933 MB / 0.4974 GB, free: 7.211 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005244/0.451, allocations: 1.832 MB / 0.4992 GB, free: 5.379 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007776/0.4587, allocations: 2.183 MB / 0.5013 GB, free: 3.195 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006233/0.465, allocations: 3.608 MB / 0.5048 GB, free: 15.58 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01206/0.477, allocations: 5.359 MB / 0.5101 GB, free: 10.2 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03295/0.51, allocations: 24.86 MB / 0.5344 GB, free: 1.258 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.51, allocations: 7.875 kB / 0.5344 GB, free: 1.25 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.51, allocations: 0 / 0.5344 GB, free: 1.25 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0006717/0.5107, allocations: 4 kB / 0.5344 GB, free: 1.246 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3035 * Number of variables: 3035 Notification: Performance of Generate backend data structure: time 0.2707/0.7814, allocations: 14.63 MB / 0.5487 GB, free: 92.66 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.201e-05/0.7814, allocations: 8.031 kB / 0.5487 GB, free: 92.65 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006772/0.7882, allocations: 1.795 MB / 0.5504 GB, free: 90.86 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04626/0.8344, allocations: 8.537 MB / 0.5588 GB, free: 82.42 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01809/0.8525, allocations: 7.782 MB / 0.5664 GB, free: 74.59 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008202/0.8534, allocations: 0.8056 MB / 0.5671 GB, free: 73.8 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004741/0.8581, allocations: 1.062 MB / 0.5682 GB, free: 72.75 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04434/0.9024, allocations: 18.5 MB / 0.5862 GB, free: 54.18 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000597/0.903, allocations: 19.88 kB / 0.5863 GB, free: 54.16 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003932/0.907, allocations: 447.6 kB / 0.5867 GB, free: 53.73 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006395/0.9076, allocations: 0.6672 MB / 0.5873 GB, free: 53.07 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03473/0.9423, allocations: 17.44 MB / 0.6044 GB, free: 35.61 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1023/1.045, allocations: 51.99 MB / 0.6552 GB, free: 14.6 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02508/1.07, allocations: 12.64 MB / 0.6675 GB, free: 3.977 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007629/1.077, allocations: 3.727 MB / 0.6711 GB, free: 232 kB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000652/1.078, allocations: 107.9 kB / 0.6712 GB, free: 120 kB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.622e-05/1.078, allocations: 82.62 kB / 0.6713 GB, free: 24 kB / 478.1 MB Notification: Performance of pre-optimization done (n=518): time 9.718e-06/1.078, allocations: 0 / 0.6713 GB, free: 24 kB / 478.1 MB Notification: Performance of matching and sorting (n=524): time 0.05366/1.132, allocations: 21.19 MB / 0.692 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001072/1.132, allocations: 103.5 kB / 0.6921 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006773/1.139, allocations: 4.26 MB / 0.6963 GB, free: 6.211 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0008971/1.14, allocations: 113.7 kB / 0.6964 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.003684/1.143, allocations: 4.671 MB / 0.7009 GB, free: 1.383 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.002435/1.146, allocations: 1.863 MB / 0.7028 GB, free: 15.5 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002426/1.148, allocations: 1.355 MB / 0.7041 GB, free: 14.14 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001264/1.148, allocations: 305.1 kB / 0.7044 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005761/1.154, allocations: 3.426 MB / 0.7077 GB, free: 10.41 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008253/1.162, allocations: 5.887 MB / 0.7135 GB, free: 3.418 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01542/1.178, allocations: 9.992 MB / 0.7232 GB, free: 8.258 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.288e-05/1.178, allocations: 24 kB / 0.7232 GB, free: 8.234 MB / 0.5294 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.02258/1.2, allocations: 10.87 MB / 0.7339 GB, free: 13.27 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 7.898e-05/1.2, allocations: 40 kB / 0.7339 GB, free: 13.23 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001401/1.201, allocations: 76 kB / 0.734 GB, free: 13.16 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003694/1.204, allocations: 1.374 MB / 0.7353 GB, free: 11.79 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007365/1.212, allocations: 1.611 MB / 0.7369 GB, free: 10.17 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.504/1.716, allocations: 10.98 MB / 0.7476 GB, free: 179.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006686/1.722, allocations: 411.5 kB / 0.748 GB, free: 179.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001705/1.724, allocations: 335 kB / 0.7483 GB, free: 179.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 354 * 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 (840): * Single equations (assignments): 838 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008856/1.733, allocations: 4.159 MB / 0.7524 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00136/1.734, allocations: 0.4895 MB / 0.7529 GB, free: 179.5 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01277/1.747, allocations: 8.4 MB / 0.7611 GB, free: 176.2 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01031/1.757, allocations: 6.998 MB / 0.7679 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.338e-05/1.757, allocations: 11.62 kB / 0.7679 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.813e-05/1.757, allocations: 30.05 kB / 0.7679 GB, free: 173.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03267/1.79, allocations: 17.79 MB / 0.7853 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.165e-05/1.79, allocations: 4 kB / 0.7853 GB, free: 163.3 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003879/1.794, allocations: 0.9306 MB / 0.7862 GB, free: 162.5 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003141/1.797, allocations: 1.226 MB / 0.7874 GB, free: 161.6 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008304/1.798, allocations: 121.6 kB / 0.7875 GB, free: 161.5 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01237/1.81, allocations: 9.692 MB / 0.797 GB, free: 153.1 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/1.81, allocations: 7.938 kB / 0.797 GB, free: 153.1 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01763/1.828, allocations: 12.19 MB / 0.8089 GB, free: 141.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00426/1.832, allocations: 1.124 MB / 0.81 GB, free: 140.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00165/1.834, allocations: 95.94 kB / 0.8101 GB, free: 140.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003638/1.837, allocations: 275.5 kB / 0.8104 GB, free: 140 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008305/1.838, allocations: 368.2 kB / 0.8107 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003033/1.839, allocations: 152 kB / 0.8109 GB, free: 139.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003831/1.842, allocations: 2.764 MB / 0.8136 GB, free: 136.7 MB / 0.545 GB Notification: Performance of sort global known variables: time 9e-08/1.842, allocations: 0 / 0.8136 GB, free: 136.7 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007837/1.85, allocations: 1.916 MB / 0.8154 GB, free: 134.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (imsQS.rotor.stray.port_p.reference.gamma,speed.phi) * 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 (499): * Single equations (assignments): 497 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(14,56,41.3%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01778/1.868, allocations: 12.96 MB / 0.8281 GB, free: 121.6 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01434/1.882, allocations: 8.353 MB / 0.8363 GB, free: 113.2 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 9.568e-06/1.882, allocations: 3.844 kB / 0.8363 GB, free: 113.2 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.007569/1.89, allocations: 3.889 MB / 0.8401 GB, free: 109.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00951/1.899, allocations: 1.123 MB / 0.8412 GB, free: 108.2 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1102/2.01, allocations: 63.65 MB / 0.9033 GB, free: 41.64 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009677/2.019, allocations: 6.582 MB / 0.9097 GB, free: 35 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00617/2.026, allocations: 2.317 MB / 0.912 GB, free: 32.67 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006222/2.032, allocations: 3.862 MB / 0.9158 GB, free: 28.81 MB / 0.545 GB Notification: Performance of SimCode: time 1.573e-06/2.032, allocations: 0 / 0.9158 GB, free: 28.81 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4435/2.475, allocations: 152.1 MB / 1.064 GB, free: 108.8 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.43/20.91, allocations: 22.38 kB / 1.064 GB, free: 108.8 MB / 0.5607 GB " [Timeout remaining time 639] (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMS_Characteristics/IMS_Characteristics.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable resistor.plug_p.reference.gamma in file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv. Warning: Get data of variable resistor.plug_p.reference.gamma from file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv failed! Error: Could not read variable speed.phi in file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv. Warning: Get data of variable speed.phi from file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 23.521100684069097]