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.001719/0.001719, allocations: 122.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.002159/0.002159, allocations: 202 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.439/1.439, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 63.89 kB / 358.3 MB, free: 13.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3104/0.3124, allocations: 50.56 MB / 408.9 MB, free: 1.457 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase): time 0.03484/0.3473, allocations: 27.12 MB / 436 MB, free: 6.227 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01983/0.3672, allocations: 7.522 MB / 443.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008335/0.3756, allocations: 179.3 kB / 443.7 MB, free: 14.5 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008214/0.3839, allocations: 1.77 MB / 445.5 MB, free: 12.72 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01125/0.3952, allocations: 2.341 MB / 447.8 MB, free: 10.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006311/0.4016, allocations: 1.551 MB / 449.3 MB, free: 8.816 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01642/0.418, allocations: 8.746 MB / 458.1 MB, free: 40 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01248/0.4305, allocations: 7.433 MB / 465.5 MB, free: 8.512 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008109/0.4387, allocations: 4.066 MB / 469.6 MB, free: 4.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01022/0.4489, allocations: 4.928 MB / 474.5 MB, free: 15.49 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003526/0.4525, allocations: 1.137 MB / 475.7 MB, free: 14.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005783/0.4583, allocations: 1.371 MB / 477 MB, free: 12.98 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005374/0.4637, allocations: 2.544 MB / 479.6 MB, free: 10.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01177/0.4755, allocations: 4.796 MB / 484.4 MB, free: 5.613 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02506/0.5007, allocations: 14.96 MB / 499.3 MB, free: 6.602 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.374e-06/0.5007, allocations: 0 / 499.3 MB, free: 6.602 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.5007, allocations: 0 / 499.3 MB, free: 6.602 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0005364/0.5013, allocations: 0 / 499.3 MB, free: 6.602 MB / 414.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.03207/0.5333, allocations: 9.612 MB / 0.497 GB, free: 12.88 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.023e-05/0.5334, allocations: 16.03 kB / 0.497 GB, free: 12.86 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003992/0.5374, allocations: 0.9921 MB / 0.498 GB, free: 11.86 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01182/0.5493, allocations: 1.752 MB / 0.4997 GB, free: 10.1 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01268/0.562, allocations: 5.173 MB / 0.5048 GB, free: 4.859 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006168/0.5627, allocations: 0.5342 MB / 0.5053 GB, free: 4.324 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002919/0.5656, allocations: 0.7108 MB / 0.506 GB, free: 3.613 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0272/0.5928, allocations: 9.808 MB / 0.5156 GB, free: 9.727 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002512/0.5931, allocations: 11.94 kB / 0.5156 GB, free: 9.715 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001855/0.595, allocations: 300 kB / 0.5159 GB, free: 9.422 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004083/0.5954, allocations: 350.6 kB / 0.5162 GB, free: 9.078 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02193/0.6173, allocations: 8.322 MB / 0.5243 GB, free: 0.7461 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4949/1.112, allocations: 30.58 MB / 0.5542 GB, free: 101.1 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01282/1.125, allocations: 17.26 MB / 0.571 GB, free: 86.19 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006825/1.132, allocations: 3.78 MB / 0.5747 GB, free: 84.93 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01334/1.145, allocations: 9.303 MB / 0.5838 GB, free: 78.52 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.801e-05/1.145, allocations: 66.97 kB / 0.5839 GB, free: 78.45 MB / 462.1 MB Notification: Performance of pre-optimization done (n=281): time 4.669e-06/1.145, allocations: 0 / 0.5839 GB, free: 78.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=289): time 0.0237/1.169, allocations: 12.52 MB / 0.5961 GB, free: 69.07 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.01e-05/1.169, allocations: 81.69 kB / 0.5962 GB, free: 68.98 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006512/1.176, allocations: 3.813 MB / 0.5999 GB, free: 65.17 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006115/1.176, allocations: 77.7 kB / 0.6 GB, free: 65.09 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001701/1.178, allocations: 3.342 MB / 0.6032 GB, free: 62.18 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008872/1.179, allocations: 1.041 MB / 0.6043 GB, free: 61.15 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008521/1.18, allocations: 0.6533 MB / 0.6049 GB, free: 60.49 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.846e-05/1.18, allocations: 305.1 kB / 0.6052 GB, free: 60.19 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002047/1.182, allocations: 1.538 MB / 0.6067 GB, free: 58.65 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002468/1.184, allocations: 2.681 MB / 0.6093 GB, free: 55.47 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004677/1.189, allocations: 4.517 MB / 0.6137 GB, free: 50.43 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-05/1.189, allocations: 12 kB / 0.6137 GB, free: 50.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.007812/1.197, allocations: 5.379 MB / 0.619 GB, free: 44.96 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/1.197, allocations: 23.98 kB / 0.619 GB, free: 44.93 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.662e-05/1.197, allocations: 39.94 kB / 0.619 GB, free: 44.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/1.198, allocations: 0.5714 MB / 0.6196 GB, free: 44.3 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002876/1.201, allocations: 0.8541 MB / 0.6204 GB, free: 43.45 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006997/1.208, allocations: 9.459 MB / 0.6297 GB, free: 33.43 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004119/1.212, allocations: 175.8 kB / 0.6298 GB, free: 33.26 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005224/1.213, allocations: 164.1 kB / 0.63 GB, free: 33.1 MB / 462.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.004086/1.217, allocations: 2.144 MB / 0.6321 GB, free: 30.95 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009604/1.218, allocations: 449.2 kB / 0.6325 GB, free: 30.5 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007209/1.225, allocations: 4.8 MB / 0.6372 GB, free: 25.59 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.767e-05/1.225, allocations: 28 kB / 0.6372 GB, free: 25.56 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-05/1.225, allocations: 19.94 kB / 0.6373 GB, free: 25.54 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.419e-05/1.225, allocations: 11.95 kB / 0.6373 GB, free: 25.53 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01669/1.242, allocations: 11.02 MB / 0.648 GB, free: 14.35 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-05/1.242, allocations: 4.531 kB / 0.648 GB, free: 14.34 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001885/1.244, allocations: 451.5 kB / 0.6485 GB, free: 13.9 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002389/1.246, allocations: 1.044 MB / 0.6495 GB, free: 12.84 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002801/1.247, allocations: 79.95 kB / 0.6496 GB, free: 12.76 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01835/1.265, allocations: 18.96 MB / 0.6681 GB, free: 8.836 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.182e-06/1.265, allocations: 8.094 kB / 0.6681 GB, free: 8.828 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01299/1.278, allocations: 6.894 MB / 0.6748 GB, free: 1.719 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002568/1.281, allocations: 0.8418 MB / 0.6756 GB, free: 0.8555 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001044/1.282, allocations: 67.98 kB / 0.6757 GB, free: 0.7891 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002196/1.284, allocations: 135.9 kB / 0.6758 GB, free: 0.6562 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006342/1.285, allocations: 217.8 kB / 0.676 GB, free: 452 kB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002023/1.285, allocations: 87.97 kB / 0.6761 GB, free: 364 kB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004798/1.29, allocations: 2.588 MB / 0.6787 GB, free: 13.76 MB / 494.1 MB Notification: Performance of sort global known variables: time 5.91e-07/1.29, allocations: 0 / 0.6787 GB, free: 13.76 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.005747/1.295, allocations: 1.242 MB / 0.6799 GB, free: 12.52 MB / 494.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.0143/1.31, allocations: 7.574 MB / 0.6873 GB, free: 4.723 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.008652/1.318, allocations: 4.551 MB / 0.6917 GB, free: 56 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.558e-06/1.319, allocations: 3.938 kB / 0.6917 GB, free: 52 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00571/1.324, allocations: 3.078 MB / 0.6947 GB, free: 12.88 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006222/1.331, allocations: 1.183 MB / 0.6959 GB, free: 11.72 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3458/1.676, allocations: 43.29 MB / 0.7381 GB, free: 182.1 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005887/1.682, allocations: 4.405 MB / 0.7424 GB, free: 181.3 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.002903/1.685, allocations: 0.9032 MB / 0.7433 GB, free: 181.2 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002835/1.688, allocations: 2.782 MB / 0.746 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of SimCode: time 5.41e-07/1.688, allocations: 0 / 0.746 GB, free: 180.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1879/1.876, allocations: 110.7 MB / 0.8542 GB, free: 82.97 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.67/21.55, allocations: 9.859 kB / 0.8542 GB, free: 82.96 MB / 0.5294 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMPM_Inverter_Polyphase_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMPM_Inverter_Polyphase_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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