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.001257/0.001257, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001355/0.001355, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.362/1.362, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 59.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2804/0.2817, allocations: 50.55 MB / 408.8 MB, free: 1.516 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.02469/0.3064, allocations: 24.87 MB / 433.7 MB, free: 8.527 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0146/0.321, allocations: 8.054 MB / 441.8 MB, free: 452 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004555/0.3256, allocations: 179.5 kB / 441.9 MB, free: 272 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01943/0.3451, allocations: 8.429 MB / 450.4 MB, free: 7.82 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01052/0.3557, allocations: 3.07 MB / 453.4 MB, free: 4.738 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006065/0.3618, allocations: 1.827 MB / 455.3 MB, free: 2.914 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01602/0.3778, allocations: 11.21 MB / 466.5 MB, free: 7.672 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03557/0.4134, allocations: 23.32 MB / 489.8 MB, free: 184 kB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009897/0.4233, allocations: 5.927 MB / 495.7 MB, free: 10.23 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01018/0.4336, allocations: 6.487 MB / 0.4904 GB, free: 3.727 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004484/0.4381, allocations: 1.715 MB / 0.4921 GB, free: 2.012 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006249/0.4443, allocations: 2.14 MB / 0.4942 GB, free: 15.88 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005765/0.4501, allocations: 3.402 MB / 0.4975 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01105/0.4612, allocations: 6.354 MB / 0.5037 GB, free: 6.086 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02826/0.4895, allocations: 23.2 MB / 0.5264 GB, free: 14.8 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.4896, allocations: 0 / 0.5264 GB, free: 14.8 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4896, allocations: 0 / 0.5264 GB, free: 14.8 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.000672/0.4903, allocations: 0 / 0.5264 GB, free: 14.8 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.04039/0.5307, allocations: 13.64 MB / 0.5397 GB, free: 1.047 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.583e-05/0.5307, allocations: 8.031 kB / 0.5397 GB, free: 1.039 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.4185/0.9492, allocations: 1.61 MB / 0.5413 GB, free: 110.6 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03554/0.9848, allocations: 6.341 MB / 0.5475 GB, free: 109.9 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01469/0.9996, allocations: 7.281 MB / 0.5546 GB, free: 105.5 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006292/1, allocations: 0.7221 MB / 0.5553 GB, free: 105.2 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003817/1.004, allocations: 0.9445 MB / 0.5562 GB, free: 104.9 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03286/1.037, allocations: 16.17 MB / 0.572 GB, free: 90.54 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003021/1.037, allocations: 11.89 kB / 0.572 GB, free: 90.52 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003034/1.04, allocations: 403.5 kB / 0.5724 GB, free: 90.14 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004851/1.041, allocations: 0.567 MB / 0.573 GB, free: 89.57 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02756/1.068, allocations: 15.12 MB / 0.5877 GB, free: 74.43 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07329/1.142, allocations: 52.69 MB / 0.6392 GB, free: 21.25 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01574/1.158, allocations: 20.09 MB / 0.6588 GB, free: 15.19 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005758/1.163, allocations: 3.649 MB / 0.6624 GB, free: 11.54 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004562/1.164, allocations: 261.6 kB / 0.6626 GB, free: 11.25 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.1e-05/1.164, allocations: 82.06 kB / 0.6627 GB, free: 11.16 MB / 478.1 MB Notification: Performance of pre-optimization done (n=447): time 5.961e-06/1.164, allocations: 3.938 kB / 0.6627 GB, free: 11.15 MB / 478.1 MB Notification: Performance of matching and sorting (n=452): time 0.05192/1.216, allocations: 20.76 MB / 0.683 GB, free: 6.488 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.13e-05/1.216, allocations: 98.94 kB / 0.6831 GB, free: 6.379 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006885/1.223, allocations: 4.514 MB / 0.6875 GB, free: 1.844 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006458/1.223, allocations: 93.7 kB / 0.6876 GB, free: 1.746 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002662/1.226, allocations: 4.353 MB / 0.6918 GB, free: 13.36 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.001655/1.228, allocations: 1.619 MB / 0.6934 GB, free: 11.72 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002282/1.23, allocations: 1.2 MB / 0.6946 GB, free: 10.51 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 9.464e-05/1.23, allocations: 305.1 kB / 0.6948 GB, free: 10.21 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004533/1.235, allocations: 3.065 MB / 0.6978 GB, free: 7.141 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006003/1.241, allocations: 5.211 MB / 0.7029 GB, free: 0.957 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01151/1.252, allocations: 8.871 MB / 0.7116 GB, free: 7.117 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.104e-05/1.252, allocations: 20 kB / 0.7116 GB, free: 7.098 MB / 0.5138 GB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01788/1.27, allocations: 9.88 MB / 0.7213 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 8.371e-05/1.27, allocations: 36.34 kB / 0.7213 GB, free: 13.16 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001138/1.271, allocations: 72 kB / 0.7214 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003986/1.275, allocations: 1.407 MB / 0.7227 GB, free: 11.68 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005408/1.28, allocations: 1.388 MB / 0.7241 GB, free: 10.29 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0185/1.298, allocations: 12.67 MB / 0.7365 GB, free: 13.33 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004717/1.303, allocations: 355.5 kB / 0.7368 GB, free: 12.98 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00121/1.304, allocations: 304 kB / 0.7371 GB, free: 12.69 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.007742/1.312, allocations: 3.88 MB / 0.7409 GB, free: 8.793 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001514/1.314, allocations: 484.9 kB / 0.7413 GB, free: 8.316 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2666/1.58, allocations: 8.502 MB / 0.7497 GB, free: 184.5 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01134/1.592, allocations: 6.256 MB / 0.7558 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.157e-05/1.592, allocations: 16.91 kB / 0.7558 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.394e-05/1.592, allocations: 22.92 kB / 0.7558 GB, free: 183.5 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02595/1.618, allocations: 17.42 MB / 0.7728 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.771e-05/1.618, allocations: 7.875 kB / 0.7728 GB, free: 176.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003031/1.621, allocations: 0.808 MB / 0.7736 GB, free: 176.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003453/1.624, allocations: 1.285 MB / 0.7749 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004741/1.625, allocations: 109.2 kB / 0.775 GB, free: 176.1 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01276/1.638, allocations: 11.57 MB / 0.7863 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.205e-06/1.638, allocations: 14.62 kB / 0.7863 GB, free: 169.2 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01558/1.653, allocations: 11.21 MB / 0.7972 GB, free: 161.2 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002701/1.656, allocations: 1.109 MB / 0.7983 GB, free: 160.3 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008057/1.657, allocations: 91.98 kB / 0.7984 GB, free: 160.2 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002322/1.659, allocations: 233.8 kB / 0.7986 GB, free: 160 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000635/1.66, allocations: 327.5 kB / 0.7989 GB, free: 159.7 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002576/1.66, allocations: 136 kB / 0.7991 GB, free: 159.5 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.003918/1.664, allocations: 3.122 MB / 0.8021 GB, free: 156.4 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/1.664, allocations: 0 / 0.8021 GB, free: 156.4 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.00601/1.67, allocations: 1.728 MB / 0.8038 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.01542/1.685, allocations: 12.22 MB / 0.8157 GB, free: 142.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01129/1.697, allocations: 7.987 MB / 0.8235 GB, free: 134.7 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.147e-05/1.697, allocations: 5 kB / 0.8235 GB, free: 134.7 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006777/1.704, allocations: 3.94 MB / 0.8274 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.006507/1.71, allocations: 1.064 MB / 0.8284 GB, free: 129.7 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08593/1.796, allocations: 60.93 MB / 0.8879 GB, free: 66.28 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.008906/1.805, allocations: 6.517 MB / 0.8943 GB, free: 59.72 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.005216/1.81, allocations: 2.123 MB / 0.8964 GB, free: 57.59 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00507/1.815, allocations: 3.561 MB / 0.8998 GB, free: 54.03 MB / 0.545 GB Notification: Performance of SimCode: time 1.052e-06/1.815, allocations: 0 / 0.8998 GB, free: 54.03 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3891/2.205, allocations: 139.2 MB / 1.036 GB, free: 118.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.29/24.49, allocations: 4.812 kB / 1.036 GB, free: 118.5 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.0.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