Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001032/0.001032, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001463/0.001463, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.307/1.307, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 64.3 kB / 306.4 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.085/0.08626, allocations: 50.53 MB / 356.9 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter): time 0.01348/0.09976, allocations: 13.29 MB / 370.2 MB, free: 1.043 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1614/0.2612, allocations: 4.448 MB / 374.6 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001812/0.2631, allocations: 76.91 kB / 374.7 MB, free: 9.848 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002533/0.2656, allocations: 0.868 MB / 375.6 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003733/0.2694, allocations: 1.133 MB / 376.7 MB, free: 9.496 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001865/0.2713, allocations: 0.8268 MB / 377.5 MB, free: 9.316 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004689/0.276, allocations: 4.246 MB / 381.8 MB, free: 7.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00296/0.279, allocations: 2.7 MB / 384.5 MB, free: 6.359 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0023/0.2813, allocations: 1.464 MB / 386 MB, free: 5.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003247/0.2845, allocations: 1.898 MB / 387.9 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001079/0.2856, allocations: 294.9 kB / 388.1 MB, free: 4.879 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001995/0.2876, allocations: 0.5196 MB / 388.7 MB, free: 4.797 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007944/0.2884, allocations: 0.877 MB / 389.5 MB, free: 4.312 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002158/0.2906, allocations: 1.848 MB / 391.4 MB, free: 3.145 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005954/0.2966, allocations: 6.427 MB / 397.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.2966, allocations: 0 / 397.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.2966, allocations: 0 / 397.8 MB, free: 14.98 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001277/0.2968, allocations: 1.219 kB / 397.8 MB, free: 14.98 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 822 * Number of variables: 822 Notification: Performance of Generate backend data structure: time 0.01053/0.3073, allocations: 4.328 MB / 402.1 MB, free: 12.09 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.3073, allocations: 8.594 kB / 402.2 MB, free: 12.09 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005581/0.3079, allocations: 454.2 kB / 402.6 MB, free: 11.75 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003953/0.3119, allocations: 0.7954 MB / 403.4 MB, free: 11.37 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003518/0.3154, allocations: 2.291 MB / 405.7 MB, free: 9.168 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000156/0.3156, allocations: 237.1 kB / 405.9 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004382/0.316, allocations: 319.8 kB / 406.2 MB, free: 8.625 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00716/0.3232, allocations: 4.22 MB / 410.4 MB, free: 4.359 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.551e-05/0.3233, allocations: 4 kB / 410.4 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003014/0.3236, allocations: 126.7 kB / 410.6 MB, free: 4.234 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000138/0.3237, allocations: 154.3 kB / 410.7 MB, free: 4.082 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006946/0.3307, allocations: 3.612 MB / 414.3 MB, free: 472 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02129/0.352, allocations: 13.27 MB / 427.6 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006269/0.3583, allocations: 7.164 MB / 434.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002694/0.3611, allocations: 1.582 MB / 436.4 MB, free: 9.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006362/0.3675, allocations: 4.208 MB / 440.6 MB, free: 4.941 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.3675, allocations: 51.55 kB / 440.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of pre-optimization done (n=120): time 2.846e-06/0.3675, allocations: 0 / 440.6 MB, free: 4.883 MB / 350.1 MB Notification: Performance of matching and sorting (n=123): time 0.01038/0.3779, allocations: 5.56 MB / 446.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.289e-05/0.378, allocations: 72.33 kB / 446.2 MB, free: 15.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002264/0.3803, allocations: 1.715 MB / 448 MB, free: 13.32 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.611e-05/0.3804, allocations: 45.7 kB / 448 MB, free: 13.27 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008507/0.3812, allocations: 1.423 MB / 449.4 MB, free: 11.84 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002868/0.3815, allocations: 429.4 kB / 449.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004067/0.3819, allocations: 283.3 kB / 450.1 MB, free: 11.14 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.189e-05/0.382, allocations: 301.1 kB / 450.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001029/0.383, allocations: 0.6559 MB / 451.1 MB, free: 10.18 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001293/0.3843, allocations: 1.129 MB / 452.2 MB, free: 8.852 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002397/0.3868, allocations: 1.894 MB / 454.1 MB, free: 6.758 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.334e-06/0.3868, allocations: 4 kB / 454.1 MB, free: 6.754 MB / 366.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003711/0.3905, allocations: 2.409 MB / 456.5 MB, free: 4.305 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.415e-05/0.3905, allocations: 11.94 kB / 456.5 MB, free: 4.293 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.197e-05/0.3906, allocations: 16 kB / 456.5 MB, free: 4.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007797/0.3913, allocations: 315.3 kB / 456.8 MB, free: 3.957 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.3926, allocations: 347.4 kB / 457.2 MB, free: 3.617 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005472/0.3981, allocations: 6.126 MB / 463.3 MB, free: 13.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00137/0.3995, allocations: 75.86 kB / 463.4 MB, free: 13.02 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000105/0.3996, allocations: 68 kB / 463.4 MB, free: 12.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 65 * 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 (177): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,8,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00158/0.4012, allocations: 1.005 MB / 464.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002745/0.4015, allocations: 181.8 kB / 464.6 MB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003603/0.4051, allocations: 2.217 MB / 466.8 MB, free: 9.484 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/0.4051, allocations: 12 kB / 466.9 MB, free: 9.473 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.438e-06/0.4051, allocations: 8 kB / 466.9 MB, free: 9.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.4051, allocations: 7.969 kB / 466.9 MB, free: 9.457 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00703/0.4122, allocations: 4.948 MB / 471.8 MB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.4122, allocations: 4 kB / 471.8 MB, free: 4.395 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007095/0.4129, allocations: 159.8 kB / 472 MB, free: 4.238 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001232/0.4141, allocations: 500 kB / 472.5 MB, free: 3.734 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.469e-05/0.4142, allocations: 39.92 kB / 472.5 MB, free: 3.695 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009269/0.4235, allocations: 10.52 MB / 483 MB, free: 8.512 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.438e-06/0.4235, allocations: 7.969 kB / 483 MB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004625/0.4282, allocations: 3.092 MB / 486.1 MB, free: 5.324 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007408/0.4289, allocations: 410.7 kB / 486.5 MB, free: 4.902 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002318/0.4292, allocations: 28 kB / 486.6 MB, free: 4.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008108/0.43, allocations: 71.94 kB / 486.6 MB, free: 4.805 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002249/0.4302, allocations: 96.73 kB / 486.7 MB, free: 4.711 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.462e-05/0.4303, allocations: 36 kB / 486.8 MB, free: 4.676 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001578/0.4319, allocations: 1.182 MB / 487.9 MB, free: 3.5 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4319, allocations: 0 / 487.9 MB, free: 3.5 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001835/0.4337, allocations: 0.5509 MB / 488.5 MB, free: 2.949 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (aimc.inertiaRotor.w,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,vfController.x,loadInertia.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 (83): * Single equations (assignments): 78 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(1,8,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004838/0.4386, allocations: 3.724 MB / 492.2 MB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00311/0.4417, allocations: 2.128 MB / 494.3 MB, free: 12.94 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.4417, allocations: 7.938 kB / 494.4 MB, free: 12.93 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002126/0.4439, allocations: 1.553 MB / 495.9 MB, free: 11.32 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002282/0.4462, allocations: 0.4887 MB / 496.4 MB, free: 10.84 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03737/0.4835, allocations: 22.5 MB / 0.5067 GB, free: 2.742 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00182/0.4854, allocations: 2.285 MB / 0.509 GB, free: 440 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001284/0.4867, allocations: 379.9 kB / 0.5093 GB, free: 56 kB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001265/0.488, allocations: 1.105 MB / 0.5104 GB, free: 14.95 MB / 446.1 MB Notification: Performance of SimCode: time 7.81e-07/0.488, allocations: 0 / 0.5104 GB, free: 14.95 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2155/0.7035, allocations: 48.51 MB / 0.5578 GB, free: 130.9 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001547/0.7036, allocations: 276.9 kB / 0.558 GB, free: 130.5 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.695/3.399, allocations: 0 / 0.558 GB, free: 130.5 MB / 446.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Inverter/IMC_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches