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.IMC_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.IMC_withLosses,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 110.1 kB / 16.92 MB, free: 5.738 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001298/0.001298, allocations: 191.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 222.9 MB / 241.5 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001122/0.001122, allocations: 50.8 kB / 300.8 MB, free: 5.766 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0977/0.09884, allocations: 49.44 MB / 350.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses): time 0.1824/0.2812, allocations: 24.82 MB / 375 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01395/0.2952, allocations: 7.834 MB / 382.8 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005504/0.3008, allocations: 182 kB / 383 MB, free: 8.727 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01891/0.3197, allocations: 8.343 MB / 391.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01151/0.3313, allocations: 2.989 MB / 394.4 MB, free: 4.25 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005326/0.3366, allocations: 1.825 MB / 396.2 MB, free: 2.828 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01324/0.3499, allocations: 11.02 MB / 407.2 MB, free: 12.24 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0318/0.3817, allocations: 23.49 MB / 430.7 MB, free: 5.379 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01148/0.3932, allocations: 5.888 MB / 436.6 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01185/0.4051, allocations: 6.514 MB / 443.1 MB, free: 8.941 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004963/0.4101, allocations: 1.715 MB / 444.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007311/0.4174, allocations: 2.136 MB / 446.9 MB, free: 5.09 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004506/0.422, allocations: 3.351 MB / 450.3 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00931/0.4313, allocations: 6.358 MB / 456.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02252/0.4538, allocations: 22.99 MB / 479.6 MB, free: 4.297 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.4539, allocations: 0 / 479.6 MB, free: 4.297 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.4539, allocations: 0 / 479.6 MB, free: 4.297 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005797/0.4545, allocations: 0 / 479.6 MB, free: 4.297 MB / 382.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.04/0.4945, allocations: 13.44 MB / 493.1 MB, free: 6.754 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.072e-05/0.4946, allocations: 15.91 kB / 493.1 MB, free: 6.738 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005638/0.5002, allocations: 1.608 MB / 494.7 MB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03423/0.5345, allocations: 6.223 MB / 0.4892 GB, free: 14.87 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01532/0.5498, allocations: 7.076 MB / 0.4961 GB, free: 7.711 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007243/0.5506, allocations: 0.7265 MB / 0.4968 GB, free: 6.98 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003924/0.5545, allocations: 0.9529 MB / 0.4977 GB, free: 6.027 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04241/0.5969, allocations: 16.17 MB / 0.5135 GB, free: 5.777 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004414/0.5974, allocations: 19.83 kB / 0.5135 GB, free: 5.758 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003503/0.6009, allocations: 408 kB / 0.5139 GB, free: 5.359 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006986/0.6017, allocations: 0.5592 MB / 0.5145 GB, free: 4.797 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3623/0.964, allocations: 15.11 MB / 0.5292 GB, free: 114.9 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07867/1.043, allocations: 52.7 MB / 0.5807 GB, free: 78.05 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01536/1.058, allocations: 20.1 MB / 0.6003 GB, free: 55.97 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005175/1.063, allocations: 3.625 MB / 0.6039 GB, free: 52.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003447/1.064, allocations: 187.6 kB / 0.6041 GB, free: 52.16 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.308e-05/1.064, allocations: 86.06 kB / 0.6041 GB, free: 52.06 MB / 430.1 MB Notification: Performance of pre-optimization done (n=447): time 6.783e-06/1.064, allocations: 0 / 0.6041 GB, free: 52.06 MB / 430.1 MB Notification: Performance of matching and sorting (n=452): time 0.04122/1.105, allocations: 20.63 MB / 0.6243 GB, free: 31.37 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.835e-05/1.105, allocations: 103 kB / 0.6244 GB, free: 31.25 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004701/1.11, allocations: 4.493 MB / 0.6288 GB, free: 26.74 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003518/1.11, allocations: 101.6 kB / 0.6289 GB, free: 26.63 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001525/1.112, allocations: 4.207 MB / 0.633 GB, free: 22.4 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008462/1.113, allocations: 1.53 MB / 0.6345 GB, free: 20.88 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001376/1.114, allocations: 1.196 MB / 0.6356 GB, free: 19.67 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.465e-05/1.114, allocations: 301.1 kB / 0.6359 GB, free: 19.38 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003372/1.117, allocations: 3.065 MB / 0.6389 GB, free: 16.3 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004057/1.121, allocations: 5.214 MB / 0.644 GB, free: 10.12 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008604/1.13, allocations: 8.872 MB / 0.6527 GB, free: 284 kB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.284e-05/1.13, allocations: 20 kB / 0.6527 GB, free: 264 kB / 430.1 MB Notification: Performance of matching and sorting (n=794) (initialization): time 0.01597/1.146, allocations: 9.862 MB / 0.6623 GB, free: 6.375 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.204e-05/1.146, allocations: 42.48 kB / 0.6624 GB, free: 6.336 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.273e-05/1.146, allocations: 68 kB / 0.6624 GB, free: 6.27 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003607/1.15, allocations: 1.415 MB / 0.6638 GB, free: 4.855 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00498/1.155, allocations: 1.388 MB / 0.6652 GB, free: 3.465 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01813/1.173, allocations: 12.68 MB / 0.6775 GB, free: 6.512 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00473/1.178, allocations: 359.4 kB / 0.6779 GB, free: 6.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001117/1.179, allocations: 300 kB / 0.6782 GB, free: 5.867 MB / 462.1 MB 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.006748/1.186, allocations: 3.885 MB / 0.682 GB, free: 1.969 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001105/1.187, allocations: 458.4 kB / 0.6824 GB, free: 1.516 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01401/1.201, allocations: 8.522 MB / 0.6907 GB, free: 8.938 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01066/1.211, allocations: 6.252 MB / 0.6968 GB, free: 2.664 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.818e-05/1.212, allocations: 12 kB / 0.6968 GB, free: 2.652 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.103e-05/1.212, allocations: 19.92 kB / 0.6969 GB, free: 2.633 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.235/1.447, allocations: 17.67 MB / 0.7141 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-05/1.447, allocations: 10.94 kB / 0.7141 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003647/1.45, allocations: 0.8092 MB / 0.7149 GB, free: 148.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003646/1.454, allocations: 1.295 MB / 0.7162 GB, free: 147.8 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007639/1.455, allocations: 101.7 kB / 0.7163 GB, free: 147.8 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0141/1.469, allocations: 11.57 MB / 0.7276 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.156e-06/1.469, allocations: 15.19 kB / 0.7276 GB, free: 140.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01641/1.485, allocations: 11.2 MB / 0.7385 GB, free: 136.1 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002534/1.488, allocations: 1.088 MB / 0.7396 GB, free: 135.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007329/1.489, allocations: 91.34 kB / 0.7397 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002291/1.491, allocations: 232.9 kB / 0.7399 GB, free: 135.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007536/1.492, allocations: 332.4 kB / 0.7402 GB, free: 135.5 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002821/1.492, allocations: 136.3 kB / 0.7403 GB, free: 135.5 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004813/1.497, allocations: 3.107 MB / 0.7434 GB, free: 134.4 MB / 478.1 MB Notification: Performance of sort global known variables: time 3e-07/1.497, allocations: 0 / 0.7434 GB, free: 134.4 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00659/1.504, allocations: 1.728 MB / 0.7451 GB, free: 133.2 MB / 478.1 MB 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.01738/1.521, allocations: 12.2 MB / 0.757 GB, free: 122.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.03226/1.553, allocations: 14.98 MB / 0.7716 GB, free: 108.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/1.553, allocations: 0 / 0.7716 GB, free: 108.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006982/1.56, allocations: 3.932 MB / 0.7754 GB, free: 105.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00776/1.568, allocations: 1.058 MB / 0.7765 GB, free: 104.4 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1008/1.669, allocations: 72.57 MB / 0.8473 GB, free: 26.38 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006715/1.676, allocations: 6.517 MB / 0.8537 GB, free: 19.83 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.005747/1.681, allocations: 2.119 MB / 0.8558 GB, free: 17.71 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004089/1.686, allocations: 3.561 MB / 0.8592 GB, free: 14.14 MB / 478.1 MB Notification: Performance of SimCode: time 2.074e-06/1.686, allocations: 0 / 0.8592 GB, free: 14.14 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6577/2.343, allocations: 140.8 MB / 0.9968 GB, free: 48.99 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.45/18.8, allocations: 10.7 kB / 0.9968 GB, free: 48.98 MB / 478.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_withLosses.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses_res.mat","/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_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches