Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.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.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001287/0.001287, allocations: 121.1 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001368, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002505/0.002505, allocations: 63.89 kB / 358.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2684/0.271, allocations: 50.54 MB / 408.8 MB, free: 1.551 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02805/0.2991, allocations: 24.75 MB / 433.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01525/0.3144, allocations: 7.404 MB / 440.9 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006275/0.3207, allocations: 147.4 kB / 441.1 MB, free: 1.125 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005583/0.3263, allocations: 1.603 MB / 442.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008014/0.3344, allocations: 2.255 MB / 444.9 MB, free: 13.24 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004518/0.3389, allocations: 1.488 MB / 446.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01089/0.3499, allocations: 7.268 MB / 453.7 MB, free: 4.465 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00823/0.3581, allocations: 5.566 MB / 459.3 MB, free: 14.81 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005191/0.3634, allocations: 3.201 MB / 462.5 MB, free: 11.6 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006473/0.3699, allocations: 3.962 MB / 466.4 MB, free: 7.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002408/0.3723, allocations: 0.8711 MB / 467.3 MB, free: 6.754 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003672/0.376, allocations: 1.296 MB / 468.6 MB, free: 5.457 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002953/0.379, allocations: 2.127 MB / 470.7 MB, free: 3.324 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006421/0.3854, allocations: 3.792 MB / 474.5 MB, free: 15.51 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0176/0.403, allocations: 11.55 MB / 486.1 MB, free: 3.926 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.4031, allocations: 0 / 486.1 MB, free: 3.926 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4031, allocations: 0 / 486.1 MB, free: 3.926 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003673/0.4035, allocations: 0 / 486.1 MB, free: 3.926 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1496 * Number of variables: 1496 Notification: Performance of Generate backend data structure: time 0.02046/0.424, allocations: 7.626 MB / 493.7 MB, free: 12.21 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.424, allocations: 15.97 kB / 493.7 MB, free: 12.19 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001418/0.4254, allocations: 0.774 MB / 494.5 MB, free: 11.41 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006428/0.4319, allocations: 1.285 MB / 495.8 MB, free: 10.12 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00934/0.4412, allocations: 4.195 MB / 500 MB, free: 5.852 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003915/0.4417, allocations: 427.8 kB / 0.4887 GB, free: 5.434 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001373/0.443, allocations: 0.5585 MB / 0.4892 GB, free: 4.875 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01572/0.4588, allocations: 7.276 MB / 0.4963 GB, free: 13.54 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001632/0.459, allocations: 15.83 kB / 0.4963 GB, free: 13.53 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008191/0.4598, allocations: 236 kB / 0.4965 GB, free: 13.3 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003091/0.4601, allocations: 255.3 kB / 0.4968 GB, free: 13.05 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01363/0.4738, allocations: 6.131 MB / 0.5028 GB, free: 6.91 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04833/0.5221, allocations: 23.56 MB / 0.5258 GB, free: 14.69 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01007/0.5323, allocations: 8.972 MB / 0.5345 GB, free: 4.727 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004798/0.5371, allocations: 2.484 MB / 0.537 GB, free: 2.238 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2285/0.7657, allocations: 7.53 MB / 0.5443 GB, free: 117.3 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.485e-05/0.7657, allocations: 58.44 kB / 0.5444 GB, free: 117.3 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 5.691e-06/0.7658, allocations: 0 / 0.5444 GB, free: 117.3 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.03022/0.796, allocations: 13.92 MB / 0.558 GB, free: 112.3 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.7961, allocations: 80.41 kB / 0.558 GB, free: 112.2 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004754/0.8008, allocations: 3.46 MB / 0.5614 GB, free: 110.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004753/0.8013, allocations: 69.7 kB / 0.5615 GB, free: 110.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001438/0.8028, allocations: 2.769 MB / 0.5642 GB, free: 108.2 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008534/0.8037, allocations: 1.014 MB / 0.5652 GB, free: 107.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00086/0.8045, allocations: 0.6411 MB / 0.5658 GB, free: 106.6 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.487e-05/0.8046, allocations: 305.1 kB / 0.5661 GB, free: 106.3 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002144/0.8067, allocations: 1.541 MB / 0.5676 GB, free: 104.8 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0027/0.8095, allocations: 2.756 MB / 0.5703 GB, free: 101.5 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005001/0.8145, allocations: 4.593 MB / 0.5748 GB, free: 96.32 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.343e-05/0.8145, allocations: 16 kB / 0.5748 GB, free: 96.31 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.008434/0.823, allocations: 5.512 MB / 0.5802 GB, free: 90.69 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.823, allocations: 20 kB / 0.5802 GB, free: 90.67 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.632e-05/0.8231, allocations: 40 kB / 0.5802 GB, free: 90.63 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001373/0.8245, allocations: 0.6846 MB / 0.5809 GB, free: 89.94 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003164/0.8277, allocations: 0.8502 MB / 0.5817 GB, free: 89.09 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008224/0.8359, allocations: 10.51 MB / 0.592 GB, free: 78.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004074/0.84, allocations: 227.7 kB / 0.5922 GB, free: 77.83 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007261/0.8408, allocations: 167.6 kB / 0.5924 GB, free: 77.67 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 175 * 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 (427): * Single equations (assignments): 417 * Array equations: 4 * 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 {(3,12,100.0%), (1,6,100.0%), (2,13,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003423/0.8442, allocations: 1.629 MB / 0.594 GB, free: 76.03 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001357/0.8456, allocations: 409.5 kB / 0.5944 GB, free: 75.63 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007697/0.8533, allocations: 4.531 MB / 0.5988 GB, free: 70.98 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.362e-05/0.8534, allocations: 31.98 kB / 0.5988 GB, free: 70.95 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.141e-05/0.8534, allocations: 11.94 kB / 0.5988 GB, free: 70.93 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.064e-05/0.8535, allocations: 15.95 kB / 0.5988 GB, free: 70.92 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01676/0.8702, allocations: 9.924 MB / 0.6085 GB, free: 60.83 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-05/0.8703, allocations: 4 kB / 0.6085 GB, free: 60.82 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002048/0.8723, allocations: 0.496 MB / 0.609 GB, free: 60.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001668/0.874, allocations: 0.7464 MB / 0.6097 GB, free: 59.56 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002502/0.8743, allocations: 71.95 kB / 0.6098 GB, free: 59.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/0.8847, allocations: 14.27 MB / 0.6237 GB, free: 44.42 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.853e-06/0.8847, allocations: 15.88 kB / 0.6238 GB, free: 44.4 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009432/0.8941, allocations: 6.625 MB / 0.6302 GB, free: 37.53 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001947/0.8961, allocations: 0.795 MB / 0.631 GB, free: 36.71 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000687/0.8968, allocations: 59.98 kB / 0.6311 GB, free: 36.66 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002124/0.899, allocations: 163.8 kB / 0.6312 GB, free: 36.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005064/0.8995, allocations: 205.8 kB / 0.6314 GB, free: 36.29 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001758/0.8997, allocations: 87.97 kB / 0.6315 GB, free: 36.21 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.00355/0.9032, allocations: 2.323 MB / 0.6338 GB, free: 33.9 MB / 462.1 MB Notification: Performance of sort global known variables: time 5.21e-07/0.9032, allocations: 0 / 0.6338 GB, free: 33.9 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004296/0.9076, allocations: 1.101 MB / 0.6348 GB, free: 32.8 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 10 (smeeM.phiMechanical,smeeM.stator.core.Phi.re,smeeM.stator.core.Phi.im,smeeM.stator.stray.Phi.re,smeeM.stator.stray.Phi.im,smeeE.phiMechanical,smeeE.idq_sr[1],smeeE.idq_sr[2],smeeE.idq_rr[2],smeeE.idq_dr[1]) * 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 (235): * Single equations (assignments): 225 * Array equations: 4 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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 {(2,13,100.0%), (1,5,100.0%), (1,8,100.0%), (3,12,100.0%), (1,6,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009482/0.917, allocations: 7.4 MB / 0.6421 GB, free: 25.15 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00677/0.9239, allocations: 4.703 MB / 0.6467 GB, free: 20.33 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.9239, allocations: 0.875 kB / 0.6467 GB, free: 20.33 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004019/0.9279, allocations: 2.855 MB / 0.6495 GB, free: 17.39 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004377/0.9323, allocations: 0.9297 MB / 0.6504 GB, free: 16.48 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06732/0.9997, allocations: 39.32 MB / 0.6888 GB, free: 7.57 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004518/1.004, allocations: 3.515 MB / 0.6922 GB, free: 4.023 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003338/1.008, allocations: 0.8564 MB / 0.693 GB, free: 3.16 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003801/1.011, allocations: 2.268 MB / 0.6952 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of SimCode: time 1.042e-06/1.011, allocations: 0 / 0.6952 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.387/1.399, allocations: 94.11 MB / 0.7872 GB, free: 160.3 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.82/20.22, allocations: 15.27 kB / 0.7872 GB, free: 160.3 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv --start-time 0 --stop-time 30 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches