Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001608/0.001608, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001743/0.001743, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.525/1.525, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001775/0.001775, allocations: 71.88 kB / 358.3 MB, free: 13.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2583/0.2601, allocations: 50.54 MB / 408.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02914/0.2893, allocations: 24.89 MB / 433.7 MB, free: 8.492 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01795/0.3073, allocations: 8.046 MB / 441.8 MB, free: 428 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00652/0.3138, allocations: 183.4 kB / 441.9 MB, free: 244 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02038/0.3343, allocations: 8.367 MB / 450.3 MB, free: 7.852 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01042/0.3447, allocations: 3.019 MB / 453.3 MB, free: 4.82 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005951/0.3507, allocations: 1.83 MB / 455.1 MB, free: 2.996 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01643/0.3671, allocations: 11.21 MB / 466.4 MB, free: 7.754 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03931/0.4065, allocations: 23.33 MB / 489.7 MB, free: 264 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01083/0.4173, allocations: 5.903 MB / 495.6 MB, free: 10.34 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01175/0.4291, allocations: 6.475 MB / 0.4903 GB, free: 3.84 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004426/0.4336, allocations: 1.719 MB / 0.492 GB, free: 2.121 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006888/0.4405, allocations: 2.152 MB / 0.4941 GB, free: 15.97 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006162/0.4467, allocations: 3.398 MB / 0.4974 GB, free: 12.57 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0129/0.4596, allocations: 6.358 MB / 0.5036 GB, free: 6.184 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03245/0.4921, allocations: 23.2 MB / 0.5263 GB, free: 14.91 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.4922, allocations: 0 / 0.5263 GB, free: 14.91 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.4922, allocations: 0 / 0.5263 GB, free: 14.91 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0006061/0.4928, allocations: 0 / 0.5263 GB, free: 14.91 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2685 * Number of variables: 2685 Notification: Performance of Generate backend data structure: time 0.04196/0.5348, allocations: 13.64 MB / 0.5396 GB, free: 1.152 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.37e-05/0.5348, allocations: 8.031 kB / 0.5396 GB, free: 1.145 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.4254/0.9603, allocations: 1.605 MB / 0.5412 GB, free: 110.6 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03721/0.9975, allocations: 6.343 MB / 0.5473 GB, free: 110 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01513/1.013, allocations: 7.279 MB / 0.5545 GB, free: 105.6 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008454/1.014, allocations: 0.726 MB / 0.5552 GB, free: 105.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004573/1.018, allocations: 0.9466 MB / 0.5561 GB, free: 104.9 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03936/1.058, allocations: 16.16 MB / 0.5719 GB, free: 90.59 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004786/1.058, allocations: 15.83 kB / 0.5719 GB, free: 90.57 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003378/1.062, allocations: 411.2 kB / 0.5723 GB, free: 90.18 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00056/1.062, allocations: 0.5592 MB / 0.5728 GB, free: 89.62 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02853/1.091, allocations: 15.12 MB / 0.5876 GB, free: 74.48 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08049/1.171, allocations: 52.69 MB / 0.6391 GB, free: 21.3 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01625/1.187, allocations: 20.09 MB / 0.6587 GB, free: 15.24 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006745/1.194, allocations: 3.637 MB / 0.6622 GB, free: 11.6 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006079/1.195, allocations: 265.6 kB / 0.6625 GB, free: 11.3 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.749e-05/1.195, allocations: 78.06 kB / 0.6625 GB, free: 11.21 MB / 478.1 MB Notification: Performance of pre-optimization done (n=447): time 9.768e-06/1.195, allocations: 0 / 0.6625 GB, free: 11.21 MB / 478.1 MB Notification: Performance of matching and sorting (n=452): time 0.0595/1.255, allocations: 20.76 MB / 0.6828 GB, free: 6.555 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.039e-05/1.255, allocations: 98.89 kB / 0.6829 GB, free: 6.445 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01119/1.266, allocations: 4.51 MB / 0.6873 GB, free: 1.914 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001111/1.267, allocations: 97.7 kB / 0.6874 GB, free: 1.812 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005786/1.273, allocations: 4.353 MB / 0.6917 GB, free: 13.42 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.003431/1.276, allocations: 1.607 MB / 0.6932 GB, free: 11.8 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.005479/1.282, allocations: 1.212 MB / 0.6944 GB, free: 10.58 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 0.0001728/1.282, allocations: 305.1 kB / 0.6947 GB, free: 10.28 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.009383/1.291, allocations: 3.061 MB / 0.6977 GB, free: 7.211 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0137/1.305, allocations: 5.211 MB / 0.7028 GB, free: 1.027 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02523/1.33, allocations: 8.872 MB / 0.7115 GB, free: 7.184 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001008/1.331, allocations: 20 kB / 0.7115 GB, free: 7.164 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.02936/1.36, allocations: 9.884 MB / 0.7211 GB, free: 13.26 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001209/1.36, allocations: 35.94 kB / 0.7212 GB, free: 13.23 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001848/1.36, allocations: 72 kB / 0.7212 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004439/1.365, allocations: 1.411 MB / 0.7226 GB, free: 11.73 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005962/1.371, allocations: 1.377 MB / 0.7239 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02155/1.392, allocations: 12.68 MB / 0.7363 GB, free: 13.39 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004996/1.397, allocations: 355.6 kB / 0.7367 GB, free: 13.04 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001349/1.399, allocations: 296 kB / 0.737 GB, free: 12.75 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 313 * 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 (720): * Single equations (assignments): 717 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,45.9%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008297/1.407, allocations: 3.884 MB / 0.7408 GB, free: 8.855 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001944/1.409, allocations: 484.9 kB / 0.7412 GB, free: 8.379 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2508/1.66, allocations: 8.508 MB / 0.7495 GB, free: 184.4 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01109/1.671, allocations: 6.257 MB / 0.7556 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.373e-05/1.671, allocations: 11.81 kB / 0.7556 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.619e-05/1.671, allocations: 22.73 kB / 0.7557 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02794/1.699, allocations: 17.43 MB / 0.7727 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.019e-05/1.699, allocations: 7.812 kB / 0.7727 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00313/1.702, allocations: 0.8012 MB / 0.7735 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003561/1.706, allocations: 1.286 MB / 0.7747 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005798/1.706, allocations: 109.5 kB / 0.7748 GB, free: 176 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01289/1.719, allocations: 11.57 MB / 0.7861 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.364e-06/1.719, allocations: 11.41 kB / 0.7861 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01876/1.738, allocations: 11.22 MB / 0.7971 GB, free: 161.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003339/1.742, allocations: 1.115 MB / 0.7982 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001209/1.743, allocations: 84.88 kB / 0.7983 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003084/1.746, allocations: 237.8 kB / 0.7985 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008903/1.747, allocations: 331.1 kB / 0.7988 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003017/1.747, allocations: 140 kB / 0.7989 GB, free: 159.6 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.004578/1.752, allocations: 3.113 MB / 0.802 GB, free: 156.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.51e-07/1.752, allocations: 0 / 0.802 GB, free: 156.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.007412/1.759, allocations: 1.727 MB / 0.8037 GB, free: 154.7 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 34 * Number of states: 4 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,PIQS.x) * 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 (417): * Single equations (assignments): 414 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,6,100.0%), (14,54,43.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01973/1.779, allocations: 12.23 MB / 0.8156 GB, free: 142.8 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01353/1.793, allocations: 7.987 MB / 0.8234 GB, free: 134.8 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.386e-05/1.793, allocations: 8.188 kB / 0.8234 GB, free: 134.8 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006827/1.799, allocations: 3.943 MB / 0.8273 GB, free: 130.8 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006732/1.806, allocations: 1.054 MB / 0.8283 GB, free: 129.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1071/1.913, allocations: 60.93 MB / 0.8878 GB, free: 66.31 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01193/1.925, allocations: 6.517 MB / 0.8942 GB, free: 59.75 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.006497/1.932, allocations: 2.123 MB / 0.8962 GB, free: 57.62 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006079/1.938, allocations: 3.561 MB / 0.8997 GB, free: 54.06 MB / 0.545 GB Notification: Performance of SimCode: time 9.81e-07/1.938, allocations: 0 / 0.8997 GB, free: 54.06 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4363/2.374, allocations: 139.2 MB / 1.036 GB, free: 118.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.13/24.51, allocations: 18.23 kB / 1.036 GB, free: 118.9 MB / 0.545 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv --start-time 0 --stop-time 10 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_withLosses/IMC_withLosses.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches