Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.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.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001689/0.001689, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002029/0.002029, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.421/1.421, allocations: 227.4 MB / 246.8 MB, free: 10.65 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001223/0.001223, allocations: 59.47 kB / 307.1 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09869/0.09994, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.2385/0.3385, allocations: 27.13 MB / 384.7 MB, free: 6.512 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.02047/0.359, allocations: 7.508 MB / 392.2 MB, free: 1.625 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008809/0.3679, allocations: 175.5 kB / 392.4 MB, free: 1.586 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006808/0.3748, allocations: 1.774 MB / 394.2 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00978/0.3846, allocations: 2.344 MB / 396.5 MB, free: 15.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004847/0.3895, allocations: 1.552 MB / 398.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01128/0.4007, allocations: 8.685 MB / 406.8 MB, free: 8.891 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01112/0.4119, allocations: 7.435 MB / 414.2 MB, free: 3.664 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009836/0.4218, allocations: 4.05 MB / 418.3 MB, free: 15.6 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0106/0.4324, allocations: 4.904 MB / 423.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004033/0.4365, allocations: 1.137 MB / 424.3 MB, free: 9.539 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005621/0.4422, allocations: 1.386 MB / 425.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003895/0.4461, allocations: 2.544 MB / 428.2 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01023/0.4564, allocations: 4.792 MB / 433 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0207/0.4771, allocations: 14.8 MB / 447.8 MB, free: 1.949 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.4772, allocations: 4 kB / 447.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4772, allocations: 0 / 447.8 MB, free: 1.945 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004267/0.4776, allocations: 0 / 447.8 MB, free: 1.945 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02842/0.506, allocations: 9.42 MB / 457.2 MB, free: 8.426 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.386e-05/0.5061, allocations: 8.031 kB / 457.2 MB, free: 8.418 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003163/0.5093, allocations: 0.9921 MB / 458.2 MB, free: 7.414 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01057/0.5199, allocations: 1.751 MB / 460 MB, free: 5.652 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0143/0.5342, allocations: 5.002 MB / 465 MB, free: 0.5781 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006666/0.5349, allocations: 0.5383 MB / 465.5 MB, free: 40 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00289/0.5378, allocations: 0.7184 MB / 466.3 MB, free: 15.32 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02569/0.5635, allocations: 9.789 MB / 476 MB, free: 5.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003174/0.5639, allocations: 4 kB / 476 MB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002438/0.5664, allocations: 304 kB / 476.3 MB, free: 5.152 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003683/0.5667, allocations: 358.6 kB / 476.7 MB, free: 4.801 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0191/0.5859, allocations: 8.314 MB / 485 MB, free: 12.48 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06166/0.6476, allocations: 30.88 MB / 0.5038 GB, free: 12.81 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01773/0.6653, allocations: 17.26 MB / 0.5206 GB, free: 9.613 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007379/0.6728, allocations: 3.639 MB / 0.5242 GB, free: 5.957 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3837/1.056, allocations: 9.281 MB / 0.5333 GB, free: 134.7 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.567e-05/1.057, allocations: 64.59 kB / 0.5333 GB, free: 134.6 MB / 446.1 MB Notification: Performance of pre-optimization done (n=281): time 5.17e-06/1.057, allocations: 0 / 0.5333 GB, free: 134.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=289): time 0.02588/1.082, allocations: 12.39 MB / 0.5454 GB, free: 129.7 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.335e-05/1.083, allocations: 80.41 kB / 0.5455 GB, free: 129.7 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006331/1.089, allocations: 3.815 MB / 0.5492 GB, free: 128.2 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004741/1.089, allocations: 76.42 kB / 0.5493 GB, free: 128.2 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002002/1.091, allocations: 3.249 MB / 0.5525 GB, free: 125.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009103/1.092, allocations: 0.9971 MB / 0.5534 GB, free: 124.9 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008772/1.093, allocations: 0.6467 MB / 0.5541 GB, free: 124.6 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 5.735e-05/1.093, allocations: 302.2 kB / 0.5544 GB, free: 124.3 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00237/1.096, allocations: 1.539 MB / 0.5559 GB, free: 123.7 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002813/1.098, allocations: 2.682 MB / 0.5585 GB, free: 121.7 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005591/1.104, allocations: 4.509 MB / 0.5629 GB, free: 118.6 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.092e-05/1.104, allocations: 12.12 kB / 0.5629 GB, free: 118.6 MB / 446.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.008318/1.113, allocations: 5.352 MB / 0.5681 GB, free: 116.3 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.805e-05/1.113, allocations: 18.56 kB / 0.5681 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.664e-05/1.113, allocations: 39.41 kB / 0.5682 GB, free: 116.3 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001228/1.114, allocations: 0.5751 MB / 0.5687 GB, free: 116.1 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002887/1.117, allocations: 0.8532 MB / 0.5696 GB, free: 116 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006501/1.123, allocations: 9.477 MB / 0.5788 GB, free: 108 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00318/1.126, allocations: 178 kB / 0.579 GB, free: 107.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003002/1.127, allocations: 167.5 kB / 0.5792 GB, free: 107.7 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (446): * Single equations (assignments): 440 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * 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): 2 systems {(2,100.0%), (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,1,100.0%), (1,8,100.0%), (1,1,100.0%), (3,16,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003258/1.13, allocations: 2.16 MB / 0.5813 GB, free: 105.8 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007846/1.131, allocations: 414.9 kB / 0.5817 GB, free: 105.4 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00667/1.138, allocations: 4.806 MB / 0.5864 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.622e-05/1.138, allocations: 28 kB / 0.5864 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.809e-05/1.138, allocations: 16 kB / 0.5864 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.681e-05/1.138, allocations: 15.94 kB / 0.5864 GB, free: 100.8 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01502/1.153, allocations: 11.01 MB / 0.5972 GB, free: 89.62 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.098e-05/1.153, allocations: 4 kB / 0.5972 GB, free: 89.62 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001726/1.154, allocations: 443.9 kB / 0.5976 GB, free: 89.18 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002195/1.157, allocations: 1.048 MB / 0.5986 GB, free: 88.11 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002168/1.157, allocations: 75.97 kB / 0.5987 GB, free: 88.04 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0146/1.171, allocations: 18.98 MB / 0.6172 GB, free: 68.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/1.172, allocations: 8.094 kB / 0.6172 GB, free: 68.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009347/1.181, allocations: 6.859 MB / 0.6239 GB, free: 61.05 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001837/1.183, allocations: 0.8238 MB / 0.6247 GB, free: 60.21 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005924/1.183, allocations: 71.98 kB / 0.6248 GB, free: 60.14 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001812/1.185, allocations: 139.9 kB / 0.6249 GB, free: 60 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004493/1.186, allocations: 217.7 kB / 0.6251 GB, free: 59.79 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001451/1.186, allocations: 87.97 kB / 0.6252 GB, free: 59.7 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003059/1.189, allocations: 2.588 MB / 0.6278 GB, free: 57.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.5e-07/1.189, allocations: 0 / 0.6278 GB, free: 57.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.003923/1.193, allocations: 1.245 MB / 0.629 GB, free: 55.86 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.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 (217): * Single equations (assignments): 210 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,8,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008687/1.201, allocations: 7.544 MB / 0.6363 GB, free: 48.1 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01186/1.213, allocations: 6.325 MB / 0.6425 GB, free: 41.69 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.194e-06/1.213, allocations: 0 / 0.6425 GB, free: 41.69 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003851/1.217, allocations: 3.076 MB / 0.6455 GB, free: 38.53 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00529/1.223, allocations: 1.187 MB / 0.6467 GB, free: 37.37 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07244/1.295, allocations: 54.34 MB / 0.6997 GB, free: 9.598 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006153/1.301, allocations: 4.393 MB / 0.704 GB, free: 5.168 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003966/1.305, allocations: 0.9068 MB / 0.7049 GB, free: 4.258 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004514/1.31, allocations: 2.78 MB / 0.7076 GB, free: 1.477 MB / 478.1 MB Notification: Performance of SimCode: time 8.21e-07/1.31, allocations: 0 / 0.7076 GB, free: 1.477 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3272/1.637, allocations: 112.3 MB / 0.8173 GB, free: 73.44 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.27/13.9, allocations: 10.5 kB / 0.8173 GB, free: 73.43 MB / 478.1 MB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMPM_Inverter_Polyphase/SMPM_Inverter_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches