Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_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.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_Inverter_Polyphase",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_ComparisonPolyphase_SMR_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.001727/0.001727, allocations: 113.6 kB / 17.78 MB, free: 5.238 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002021/0.002021, allocations: 207.9 kB / 18.74 MB, free: 4.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.509/1.509, allocations: 227.4 MB / 246.9 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 67.88 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2686, allocations: 50.54 MB / 408.8 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase): time 0.03049/0.2991, allocations: 25.01 MB / 433.8 MB, free: 8.391 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01575/0.3149, allocations: 6.907 MB / 440.7 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004647/0.3196, allocations: 167.4 kB / 440.9 MB, free: 1.301 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005348/0.325, allocations: 1.595 MB / 442.5 MB, free: 15.69 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008737/0.3337, allocations: 2.123 MB / 444.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004824/0.3386, allocations: 1.487 MB / 446.1 MB, free: 12.08 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0125/0.3511, allocations: 8.148 MB / 454.2 MB, free: 3.898 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01087/0.362, allocations: 7.3 MB / 461.5 MB, free: 12.5 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006737/0.3688, allocations: 3.844 MB / 465.4 MB, free: 8.648 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008899/0.3777, allocations: 4.683 MB / 470.1 MB, free: 3.949 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003044/0.3808, allocations: 1.098 MB / 471.2 MB, free: 2.852 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00416/0.385, allocations: 1.32 MB / 472.5 MB, free: 1.531 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003302/0.3883, allocations: 2.447 MB / 474.9 MB, free: 15.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007894/0.3962, allocations: 4.532 MB / 479.5 MB, free: 10.53 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01843/0.4147, allocations: 14.3 MB / 493.8 MB, free: 12.18 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.4147, allocations: 0 / 493.8 MB, free: 12.18 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.012e-06/0.4147, allocations: 0 / 493.8 MB, free: 12.18 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0003839/0.4151, allocations: 0 / 493.8 MB, free: 12.18 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: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02724/0.4424, allocations: 9.081 MB / 0.4911 GB, free: 2.988 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.187e-05/0.4424, allocations: 12.03 kB / 0.4911 GB, free: 2.977 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002897/0.4453, allocations: 0.9511 MB / 0.492 GB, free: 2.012 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009732/0.4551, allocations: 1.717 MB / 0.4937 GB, free: 296 kB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01121/0.4663, allocations: 4.883 MB / 0.4984 GB, free: 11.33 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005335/0.4669, allocations: 0.518 MB / 0.4989 GB, free: 10.81 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00218/0.4691, allocations: 0.6795 MB / 0.4996 GB, free: 10.13 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02323/0.4923, allocations: 9.451 MB / 0.5088 GB, free: 0.6172 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000183/0.4925, allocations: 15.94 kB / 0.5089 GB, free: 0.6016 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009958/0.4935, allocations: 280 kB / 0.5091 GB, free: 336 kB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003803/0.4939, allocations: 334.2 kB / 0.5094 GB, free: 16 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01871/0.5126, allocations: 8.086 MB / 0.5173 GB, free: 7.898 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3153/0.828, allocations: 28.67 MB / 0.5453 GB, free: 104.8 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01372/0.8418, allocations: 17.74 MB / 0.5627 GB, free: 90.79 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006853/0.8486, allocations: 3.665 MB / 0.5662 GB, free: 90.29 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01477/0.8635, allocations: 8.898 MB / 0.5749 GB, free: 85.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.28e-05/0.8635, allocations: 63.39 kB / 0.575 GB, free: 85.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=259): time 5.269e-06/0.8636, allocations: 2.625 kB / 0.575 GB, free: 85.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=265): time 0.02184/0.8854, allocations: 11.8 MB / 0.5865 GB, free: 78.71 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.8855, allocations: 83.62 kB / 0.5866 GB, free: 78.64 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004653/0.8901, allocations: 3.404 MB / 0.5899 GB, free: 76.21 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003553/0.8905, allocations: 77.69 kB / 0.59 GB, free: 76.13 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001625/0.8922, allocations: 3.143 MB / 0.5931 GB, free: 73.37 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007295/0.8929, allocations: 0.9668 MB / 0.594 GB, free: 72.42 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007766/0.8937, allocations: 0.5898 MB / 0.5946 GB, free: 71.82 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.112e-05/0.8938, allocations: 301.1 kB / 0.5949 GB, free: 71.52 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001895/0.8957, allocations: 1.447 MB / 0.5963 GB, free: 70.07 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002141/0.8978, allocations: 2.489 MB / 0.5987 GB, free: 67.13 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004227/0.9021, allocations: 4.197 MB / 0.6028 GB, free: 62.45 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.532e-05/0.9021, allocations: 9.688 kB / 0.6028 GB, free: 62.45 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.006971/0.9091, allocations: 5.039 MB / 0.6077 GB, free: 57.32 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.605e-05/0.9091, allocations: 20 kB / 0.6078 GB, free: 57.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.279e-05/0.9092, allocations: 32 kB / 0.6078 GB, free: 57.27 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001266/0.9105, allocations: 0.5635 MB / 0.6083 GB, free: 56.69 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002582/0.913, allocations: 0.7761 MB / 0.6091 GB, free: 55.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006737/0.9198, allocations: 9.479 MB / 0.6184 GB, free: 45.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003293/0.9231, allocations: 155.8 kB / 0.6185 GB, free: 45.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003568/0.9235, allocations: 148 kB / 0.6186 GB, free: 45.59 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (406): * Single equations (assignments): 400 * 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.003552/0.9271, allocations: 2.082 MB / 0.6207 GB, free: 43.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008095/0.9279, allocations: 385.6 kB / 0.621 GB, free: 43.12 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006546/0.9344, allocations: 4.545 MB / 0.6255 GB, free: 38.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.373e-05/0.9345, allocations: 31.98 kB / 0.6255 GB, free: 38.43 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.651e-05/0.9345, allocations: 12 kB / 0.6255 GB, free: 38.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.118e-05/0.9346, allocations: 19.94 kB / 0.6255 GB, free: 38.39 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01662/0.9512, allocations: 10.35 MB / 0.6357 GB, free: 27.88 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-05/0.9512, allocations: 4 kB / 0.6357 GB, free: 27.88 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001605/0.9528, allocations: 399.4 kB / 0.636 GB, free: 27.49 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002287/0.9551, allocations: 1.04 MB / 0.6371 GB, free: 26.43 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002006/0.9554, allocations: 67.97 kB / 0.6371 GB, free: 26.36 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01476/0.9701, allocations: 18.83 MB / 0.6555 GB, free: 6.566 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.9702, allocations: 8.016 kB / 0.6555 GB, free: 6.559 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008769/0.9789, allocations: 6.47 MB / 0.6618 GB, free: 15.89 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002225/0.9812, allocations: 0.7795 MB / 0.6626 GB, free: 15.09 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000763/0.982, allocations: 56 kB / 0.6627 GB, free: 15.03 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001862/0.9838, allocations: 135.9 kB / 0.6628 GB, free: 14.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005482/0.9844, allocations: 201.6 kB / 0.663 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001815/0.9846, allocations: 83.97 kB / 0.6631 GB, free: 14.62 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003933/0.9885, allocations: 2.319 MB / 0.6653 GB, free: 12.31 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.9886, allocations: 0 / 0.6653 GB, free: 12.31 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.00469/0.9933, allocations: 1.156 MB / 0.6665 GB, free: 11.16 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (195): * Single equations (assignments): 188 * 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,12,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.01211/1.005, allocations: 7.123 MB / 0.6734 GB, free: 3.82 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.00812/1.014, allocations: 4.303 MB / 0.6776 GB, free: 15.4 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.127e-06/1.014, allocations: 0 / 0.6776 GB, free: 15.4 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005484/1.019, allocations: 2.961 MB / 0.6805 GB, free: 12.34 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005726/1.025, allocations: 1.023 MB / 0.6815 GB, free: 11.34 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1089/1.134, allocations: 40.12 MB / 0.7207 GB, free: 1.855 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00776/1.142, allocations: 4.241 MB / 0.7248 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.003817/1.145, allocations: 0.8367 MB / 0.7256 GB, free: 12.75 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00522/1.151, allocations: 2.553 MB / 0.7281 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of SimCode: time 1.803e-06/1.151, allocations: 0 / 0.7281 GB, free: 10.19 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4287/1.579, allocations: 101.1 MB / 0.8269 GB, free: 111.1 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.09/19.67, allocations: 9.438 kB / 0.8269 GB, free: 111.1 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_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_SMR_Inverter_Polyphase.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/ComparisonPolyphase/SMR_Inverter_Polyphase/SMR_Inverter_Polyphase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.ComparisonPolyphase.SMR_Inverter_Polyphase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches