Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.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.001266/0.001266, allocations: 79.7 kB / 20.67 MB, free: 3.879 MB / 18.57 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.001415/0.001415, allocations: 170 kB / 23.95 MB, free: 0.6055 MB / 18.57 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 0.9032/0.9032, allocations: 177.1 MB / 204.3 MB, free: 5.73 MB / 186.7 MB " [Timeout remaining time 179] 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics,fileNamePrefix="Modelica_4_1_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_1_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 1.343e-06/1.343e-06, allocations: 0 / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.225e-05/1.36e-05, allocations: 2.281 kB / 324.6 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics): time 0.01737/0.01738, allocations: 23.25 MB / 347.9 MB, free: 8.562 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01283/0.03022, allocations: 7.864 MB / 355.7 MB, free: 0.6758 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003034/0.03325, allocations: 238.8 kB / 356 MB, free: 452 kB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.009608/0.04286, allocations: 9.238 MB / 365.2 MB, free: 7.18 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01003/0.05289, allocations: 3.449 MB / 368.6 MB, free: 3.715 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003778/0.05667, allocations: 1.818 MB / 370.5 MB, free: 1.902 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01132/0.06798, allocations: 12.76 MB / 383.2 MB, free: 5.09 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01809/0.08608, allocations: 15.88 MB / 399.1 MB, free: 5.02 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01201/0.09809, allocations: 9.727 MB / 408.8 MB, free: 11.28 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007709/0.1058, allocations: 6.276 MB / 415.1 MB, free: 4.988 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.003423/0.1092, allocations: 1.832 MB / 416.9 MB, free: 3.156 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003603/0.1128, allocations: 2.226 MB / 419.2 MB, free: 0.9297 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001913/0.1147, allocations: 3.67 MB / 422.8 MB, free: 13.25 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00464/0.1194, allocations: 4.632 MB / 427.5 MB, free: 8.609 MB / 394.7 MB Notification: Performance of NFConvertDAE.convert: time 0.2167/0.3361, allocations: 25.12 MB / 452.6 MB, free: 47.07 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3361, allocations: 0 / 452.6 MB, free: 47.07 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.3361, allocations: 0.5312 kB / 452.6 MB, free: 47.07 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000833/0.3369, allocations: 0.9062 kB / 452.6 MB, free: 47.07 MB / 410.7 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.02745/0.3643, allocations: 14.56 MB / 467.1 MB, free: 43.48 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.3644, allocations: 9.969 kB / 467.1 MB, free: 43.48 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002048/0.3664, allocations: 1.782 MB / 468.9 MB, free: 43.34 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02213/0.3886, allocations: 8.456 MB / 477.4 MB, free: 42.65 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01116/0.3997, allocations: 7.805 MB / 485.2 MB, free: 41.43 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003327/0.4001, allocations: 0.8002 MB / 486 MB, free: 41.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00161/0.4017, allocations: 1.065 MB / 487.1 MB, free: 41.2 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02192/0.4236, allocations: 18.55 MB / 0.4938 GB, free: 24.46 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000165/0.4238, allocations: 15.91 kB / 0.4938 GB, free: 24.45 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007849/0.4245, allocations: 454 kB / 0.4942 GB, free: 24.02 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004182/0.425, allocations: 0.6633 MB / 0.4949 GB, free: 23.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01924/0.4442, allocations: 17.49 MB / 0.5119 GB, free: 5.859 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05884/0.503, allocations: 52.14 MB / 0.5629 GB, free: 1.621 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0134/0.5164, allocations: 12.67 MB / 0.5752 GB, free: 6.988 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003649/0.5201, allocations: 3.73 MB / 0.5789 GB, free: 3.234 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002587/0.5204, allocations: 127.3 kB / 0.579 GB, free: 3.109 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.952e-05/0.5204, allocations: 90.62 kB / 0.5791 GB, free: 3.008 MB / 474.7 MB Notification: Performance of pre-optimization done (n=518): time 5.941e-06/0.5204, allocations: 0 / 0.5791 GB, free: 3.008 MB / 474.7 MB Notification: Performance of matching and sorting (n=524): time 0.02897/0.5494, allocations: 21.25 MB / 0.5998 GB, free: 13.62 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.876e-05/0.5495, allocations: 107.5 kB / 0.5999 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00438/0.5538, allocations: 4.268 MB / 0.6041 GB, free: 9.203 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002107/0.554, allocations: 105.7 kB / 0.6042 GB, free: 9.094 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001978/0.556, allocations: 4.659 MB / 0.6087 GB, free: 4.426 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009982/0.557, allocations: 1.842 MB / 0.6105 GB, free: 2.609 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001373/0.5584, allocations: 1.363 MB / 0.6119 GB, free: 1.238 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 6.761e-05/0.5585, allocations: 301.1 kB / 0.6122 GB, free: 0.9414 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003456/0.5619, allocations: 3.434 MB / 0.6155 GB, free: 13.5 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004457/0.5664, allocations: 5.899 MB / 0.6213 GB, free: 6.543 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008747/0.5751, allocations: 10.02 MB / 0.6311 GB, free: 11.68 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.697e-05/0.5752, allocations: 20 kB / 0.6311 GB, free: 11.66 MB / 0.5261 GB Notification: Performance of matching and sorting (n=910) (initialization): time 0.01179/0.587, allocations: 10.91 MB / 0.6417 GB, free: 1.172 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 4.512e-05/0.587, allocations: 36 kB / 0.6418 GB, free: 1.137 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.585e-05/0.5871, allocations: 80 kB / 0.6418 GB, free: 1.059 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.2006/0.7877, allocations: 1.369 MB / 0.6432 GB, free: 204 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00436/0.792, allocations: 1.624 MB / 0.6448 GB, free: 204 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009888/0.8019, allocations: 10.97 MB / 0.6555 GB, free: 200.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003632/0.8055, allocations: 405.9 kB / 0.6559 GB, free: 200.6 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003386/0.8059, allocations: 336.8 kB / 0.6562 GB, free: 200.5 MB / 0.5261 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.0048/0.8107, allocations: 4.165 MB / 0.6603 GB, free: 198.5 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006328/0.8113, allocations: 0.4891 MB / 0.6607 GB, free: 198.5 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007875/0.8192, allocations: 8.403 MB / 0.6689 GB, free: 195.2 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006527/0.8257, allocations: 7.026 MB / 0.6758 GB, free: 191.5 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.8257, allocations: 15.8 kB / 0.6758 GB, free: 191.5 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.689e-05/0.8258, allocations: 26.34 kB / 0.6758 GB, free: 191.5 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01762/0.8434, allocations: 17.83 MB / 0.6933 GB, free: 176.7 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-05/0.8434, allocations: 4 kB / 0.6933 GB, free: 176.7 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001754/0.8451, allocations: 0.9423 MB / 0.6942 GB, free: 175.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001611/0.8468, allocations: 1.228 MB / 0.6954 GB, free: 175 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001781/0.8469, allocations: 119.4 kB / 0.6955 GB, free: 174.9 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008585/0.8555, allocations: 9.693 MB / 0.705 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.8555, allocations: 9.562 kB / 0.705 GB, free: 165.5 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01041/0.8659, allocations: 12.22 MB / 0.7169 GB, free: 153.3 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001694/0.8676, allocations: 1.126 MB / 0.718 GB, free: 152.2 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003832/0.868, allocations: 102.9 kB / 0.7181 GB, free: 152.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001221/0.8692, allocations: 263.8 kB / 0.7183 GB, free: 151.9 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004062/0.8696, allocations: 368.3 kB / 0.7187 GB, free: 151.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001842/0.8698, allocations: 156 kB / 0.7188 GB, free: 151.4 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002289/0.8721, allocations: 2.771 MB / 0.7216 GB, free: 148.6 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.01e-07/0.8721, allocations: 0 / 0.7216 GB, free: 148.6 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.003991/0.8761, allocations: 1.918 MB / 0.7234 GB, free: 146.7 MB / 0.5261 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.01249/0.8886, allocations: 13 MB / 0.7361 GB, free: 133.5 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.009721/0.8983, allocations: 8.368 MB / 0.7443 GB, free: 125.1 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 7.975e-06/0.8983, allocations: 4.125 kB / 0.7443 GB, free: 125 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.004974/0.9033, allocations: 3.889 MB / 0.7481 GB, free: 121.1 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004305/0.9076, allocations: 1.126 MB / 0.7492 GB, free: 120 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08404/0.9916, allocations: 63.65 MB / 0.8114 GB, free: 53.46 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006099/0.9977, allocations: 6.582 MB / 0.8178 GB, free: 46.82 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.00405/1.002, allocations: 2.321 MB / 0.82 GB, free: 44.49 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004132/1.006, allocations: 3.895 MB / 0.8239 GB, free: 40.59 MB / 0.5261 GB Notification: Performance of SimCode: time 1.954e-06/1.006, allocations: 0 / 0.8239 GB, free: 40.59 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2965/1.302, allocations: 152.6 MB / 0.9729 GB, free: 119.5 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/13.61, allocations: 8 kB / 0.9729 GB, free: 119.5 MB / 0.5261 GB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Characteristics.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMS_Characteristics/IMS_Characteristics.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.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.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv failed! Error: Could not read variable speed.phi in file Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Characteristics_res.csv. Warning: Get data of variable speed.phi from file Modelica_4.1.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: 15.480027159675956]