Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.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_YD,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001394/0.001394, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001614/0.001615, allocations: 202 kB / 18.74 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.356/1.356, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001131/0.001131, allocations: 71.86 kB / 358.2 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2982/0.2994, allocations: 50.54 MB / 408.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD): time 0.01625/0.3157, allocations: 14.85 MB / 423.6 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01019/0.3259, allocations: 4.862 MB / 428.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003334/0.3293, allocations: 91.62 kB / 428.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003438/0.3328, allocations: 1.122 MB / 429.7 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00698/0.3398, allocations: 1.468 MB / 431.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002886/0.3427, allocations: 0.9803 MB / 432.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006863/0.3496, allocations: 5.119 MB / 437.3 MB, free: 4.918 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004503/0.3542, allocations: 3.859 MB / 441.1 MB, free: 0.9922 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003883/0.3581, allocations: 2.36 MB / 443.5 MB, free: 14.62 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004734/0.3628, allocations: 2.764 MB / 446.2 MB, free: 11.85 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001492/0.3643, allocations: 0.625 MB / 446.9 MB, free: 11.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002447/0.3668, allocations: 0.8396 MB / 447.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001422/0.3682, allocations: 1.449 MB / 449.2 MB, free: 8.934 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003962/0.3722, allocations: 2.661 MB / 451.8 MB, free: 6.262 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009749/0.382, allocations: 8.343 MB / 460.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.482e-06/0.382, allocations: 0 / 460.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.382, allocations: 0 / 460.2 MB, free: 13.89 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002264/0.3823, allocations: 0 / 460.2 MB, free: 13.89 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: 1011 * Number of variables: 1011 Notification: Performance of Generate backend data structure: time 0.01551/0.3978, allocations: 5.497 MB / 465.7 MB, free: 8.312 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.373e-05/0.3978, allocations: 8.031 kB / 465.7 MB, free: 8.305 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008586/0.3987, allocations: 0.5352 MB / 466.2 MB, free: 7.762 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004746/0.4035, allocations: 0.9583 MB / 467.2 MB, free: 6.801 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006695/0.4102, allocations: 3.053 MB / 470.2 MB, free: 3.699 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002371/0.4104, allocations: 303.7 kB / 470.5 MB, free: 3.402 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000734/0.4112, allocations: 383.9 kB / 470.9 MB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01023/0.4214, allocations: 5.383 MB / 476.3 MB, free: 13.59 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001107/0.4216, allocations: 7.938 kB / 476.3 MB, free: 13.58 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005165/0.4221, allocations: 156 kB / 476.4 MB, free: 13.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001899/0.4223, allocations: 175.7 kB / 476.6 MB, free: 13.26 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009296/0.4316, allocations: 4.734 MB / 481.3 MB, free: 8.52 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03178/0.4634, allocations: 16.81 MB / 498.1 MB, free: 7.316 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009363/0.4728, allocations: 8.8 MB / 0.4951 GB, free: 13.52 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002964/0.4758, allocations: 1.858 MB / 0.4969 GB, free: 11.67 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009908/0.4858, allocations: 5.097 MB / 0.5019 GB, free: 6.43 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002102/0.4879, allocations: 1.321 MB / 0.5031 GB, free: 5.074 MB / 430.1 MB Notification: Performance of pre-optimization done (n=185): time 5.239e-06/0.4879, allocations: 0 / 0.5031 GB, free: 5.074 MB / 430.1 MB Notification: Performance of matching and sorting (n=188): time 0.01968/0.5076, allocations: 8.715 MB / 0.5117 GB, free: 12.15 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001672/0.5078, allocations: 227.6 kB / 0.5119 GB, free: 11.88 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004976/0.5128, allocations: 2.347 MB / 0.5142 GB, free: 9.508 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002092/0.5131, allocations: 65.69 kB / 0.5142 GB, free: 9.438 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001823/0.5149, allocations: 1.789 MB / 0.516 GB, free: 7.629 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006603/0.5156, allocations: 0.6469 MB / 0.5166 GB, free: 6.977 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007985/0.5164, allocations: 415.9 kB / 0.517 GB, free: 6.562 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.5165, allocations: 305.1 kB / 0.5173 GB, free: 6.262 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001879/0.5184, allocations: 1.023 MB / 0.5183 GB, free: 5.234 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002725/0.5211, allocations: 1.63 MB / 0.5199 GB, free: 3.348 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004382/0.5255, allocations: 2.652 MB / 0.5225 GB, free: 488 kB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.09e-05/0.5256, allocations: 4 kB / 0.5225 GB, free: 484 kB / 446.1 MB Notification: Performance of matching and sorting (n=275) (initialization): time 0.006522/0.5321, allocations: 3.583 MB / 0.526 GB, free: 12.85 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.539e-05/0.5322, allocations: 12 kB / 0.526 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.706e-05/0.5322, allocations: 23.94 kB / 0.526 GB, free: 12.81 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001934/0.5341, allocations: 0.7632 MB / 0.5268 GB, free: 12.04 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001489/0.5356, allocations: 395.3 kB / 0.5271 GB, free: 11.65 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2828/0.8185, allocations: 11.83 MB / 0.5387 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002768/0.8213, allocations: 129.7 kB / 0.5388 GB, free: 120.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00034/0.8216, allocations: 91.53 kB / 0.5389 GB, free: 120.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 24 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[1].y,switchYD.logicalDelay[3].tSwitch,$PRE.switchYD.logicalDelay[3].tSwitch,switchYD.logicalDelay[2].tSwitch,$PRE.switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[1].tSwitch,$PRE.switchYD.logicalDelay[1].tSwitch,switchYD.idealOpener.control[3],switchYD.idealOpener.control[2],switchYD.idealOpener.control[1],switchYD.idealCloser.control[3],switchYD.idealCloser.control[2],switchYD.idealCloser.control[1],idealCloser.control[3],idealCloser.control[2],idealCloser.control[1],$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5,$whenCondition6) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (219): * Single equations (assignments): 214 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(1,8,100.0%), (9,25,33.3%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003413/0.8251, allocations: 1.332 MB / 0.5402 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007951/0.8259, allocations: 259.3 kB / 0.5404 GB, free: 120.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005913/0.8318, allocations: 3.377 MB / 0.5437 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.522e-05/0.8318, allocations: 23.5 kB / 0.5438 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.608e-05/0.8319, allocations: 9.312 kB / 0.5438 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.652e-05/0.8319, allocations: 16.59 kB / 0.5438 GB, free: 119.3 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01009/0.842, allocations: 6.996 MB / 0.5506 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.975e-06/0.842, allocations: 3.938 kB / 0.5506 GB, free: 116.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007529/0.8428, allocations: 186.9 kB / 0.5508 GB, free: 116.2 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001923/0.8447, allocations: 0.941 MB / 0.5517 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001347/0.8449, allocations: 43.33 kB / 0.5518 GB, free: 115.9 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01326/0.8581, allocations: 16.67 MB / 0.568 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.8582, allocations: 6.406 kB / 0.5681 GB, free: 102.1 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006385/0.8646, allocations: 4.806 MB / 0.5727 GB, free: 97.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001512/0.8661, allocations: 0.5657 MB / 0.5733 GB, free: 96.94 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003648/0.8665, allocations: 43.94 kB / 0.5733 GB, free: 96.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00114/0.8676, allocations: 100.6 kB / 0.5734 GB, free: 96.8 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004629/0.8681, allocations: 201.7 kB / 0.5736 GB, free: 96.6 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.757e-05/0.8682, allocations: 51.98 kB / 0.5737 GB, free: 96.55 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001984/0.8702, allocations: 1.609 MB / 0.5753 GB, free: 94.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8702, allocations: 0 / 0.5753 GB, free: 94.93 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002822/0.873, allocations: 0.7837 MB / 0.576 GB, free: 94.14 MB / 462.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.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi) * Number of discrete variables: 21 (booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],switchYD.idealCloser.control[1],switchYD.idealCloser.control[2],switchYD.idealCloser.control[3],switchYD.idealOpener.control[1],switchYD.idealOpener.control[2],switchYD.idealOpener.control[3],switchYD.logicalDelay[1].tSwitch,switchYD.logicalDelay[2].tSwitch,switchYD.logicalDelay[3].tSwitch) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (112): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,8,100.0%), (9,25,33.3%), (1,13,100.0%), (1,8,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.006222/0.8793, allocations: 5.45 MB / 0.5813 GB, free: 88.63 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004234/0.8835, allocations: 3.324 MB / 0.5846 GB, free: 85.24 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.859e-06/0.8836, allocations: 384 / 0.5846 GB, free: 85.24 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00294/0.8865, allocations: 2.434 MB / 0.587 GB, free: 82.74 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003279/0.8898, allocations: 0.7174 MB / 0.5877 GB, free: 82.04 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03593/0.9258, allocations: 26.81 MB / 0.6138 GB, free: 54.41 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003331/0.9291, allocations: 2.857 MB / 0.6166 GB, free: 51.53 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001763/0.9309, allocations: 0.5133 MB / 0.6171 GB, free: 51.01 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001881/0.9328, allocations: 1.463 MB / 0.6186 GB, free: 49.55 MB / 462.1 MB Notification: Performance of SimCode: time 3.357e-06/0.9329, allocations: 0 / 0.6186 GB, free: 49.55 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1273/1.06, allocations: 70.92 MB / 0.6878 GB, free: 11.27 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.41/15.47, allocations: 4.297 kB / 0.6878 GB, free: 11.27 MB / 494.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_YD.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_YD/IMC_YD.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_YD.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches