Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001329/0.001328, allocations: 114.4 kB / 17.74 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001336/0.001336, allocations: 183.1 kB / 18.66 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.462/1.462, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001424/0.001424, allocations: 43.94 kB / 328.1 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.09034, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator): time 0.2262/0.3166, allocations: 24.07 MB / 398.7 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01852/0.3351, allocations: 7.107 MB / 405.8 MB, free: 8.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008421/0.3437, allocations: 130.6 kB / 406 MB, free: 8.906 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007486/0.3512, allocations: 1.605 MB / 407.6 MB, free: 8.035 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01153/0.3628, allocations: 2.356 MB / 409.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005748/0.3686, allocations: 1.463 MB / 411.4 MB, free: 5.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01437/0.383, allocations: 7.203 MB / 418.6 MB, free: 1.09 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01106/0.3941, allocations: 5.477 MB / 424.1 MB, free: 14.35 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007009/0.4011, allocations: 3.201 MB / 427.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007642/0.4088, allocations: 3.822 MB / 431.1 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003079/0.4119, allocations: 0.875 MB / 432 MB, free: 6.516 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00732/0.4193, allocations: 1.304 MB / 433.3 MB, free: 5.211 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004223/0.4235, allocations: 2.127 MB / 435.4 MB, free: 3.078 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009529/0.4331, allocations: 3.781 MB / 439.2 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01969/0.4528, allocations: 11.49 MB / 450.7 MB, free: 3.758 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.135e-06/0.4529, allocations: 0 / 450.7 MB, free: 3.758 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.755e-06/0.4529, allocations: 0 / 450.7 MB, free: 3.758 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0004774/0.4533, allocations: 4 kB / 450.7 MB, free: 3.754 MB / 366.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.02644/0.4798, allocations: 7.587 MB / 458.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.4799, allocations: 8.031 kB / 458.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002701/0.4826, allocations: 0.774 MB / 459 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00833/0.4909, allocations: 1.254 MB / 460.3 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01231/0.5033, allocations: 3.945 MB / 464.2 MB, free: 6.008 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005337/0.5039, allocations: 436 kB / 464.7 MB, free: 5.582 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002142/0.506, allocations: 0.5546 MB / 465.2 MB, free: 5.027 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02077/0.5268, allocations: 7.272 MB / 472.5 MB, free: 13.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002936/0.5272, allocations: 15.83 kB / 472.5 MB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001835/0.529, allocations: 232 kB / 472.7 MB, free: 13.46 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003333/0.5294, allocations: 263.3 kB / 473 MB, free: 13.2 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0154/0.5448, allocations: 6.107 MB / 479.1 MB, free: 7.086 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05493/0.5997, allocations: 23.47 MB / 0.4908 GB, free: 14.98 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009832/0.6097, allocations: 8.721 MB / 0.4993 GB, free: 5.32 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004472/0.6142, allocations: 2.363 MB / 0.5016 GB, free: 2.953 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01595/0.6302, allocations: 6.947 MB / 0.5084 GB, free: 11.79 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.135e-05/0.6303, allocations: 64.55 kB / 0.5085 GB, free: 11.71 MB / 446.1 MB Notification: Performance of pre-optimization done (n=238): time 6.342e-06/0.6303, allocations: 0 / 0.5085 GB, free: 11.71 MB / 446.1 MB Notification: Performance of matching and sorting (n=282): time 0.03799/0.6683, allocations: 13.81 MB / 0.522 GB, free: 13.68 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.555e-05/0.6684, allocations: 85.53 kB / 0.522 GB, free: 13.58 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006921/0.6753, allocations: 3.424 MB / 0.5254 GB, free: 10.17 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003601/0.6757, allocations: 73.7 kB / 0.5254 GB, free: 10.09 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002248/0.678, allocations: 2.756 MB / 0.5281 GB, free: 7.316 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001237/0.6792, allocations: 1.015 MB / 0.5291 GB, free: 6.293 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001402/0.6807, allocations: 0.6375 MB / 0.5298 GB, free: 5.648 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.6808, allocations: 301.1 kB / 0.53 GB, free: 5.352 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003082/0.6839, allocations: 1.553 MB / 0.5316 GB, free: 3.797 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003997/0.688, allocations: 2.752 MB / 0.5342 GB, free: 0.5117 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007379/0.6954, allocations: 4.603 MB / 0.5387 GB, free: 11.33 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.019e-05/0.6954, allocations: 12 kB / 0.5388 GB, free: 11.32 MB / 478.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.012/0.7074, allocations: 5.501 MB / 0.5441 GB, free: 5.719 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.145e-05/0.7075, allocations: 23.98 kB / 0.5441 GB, free: 5.695 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002053/0.7078, allocations: 40.66 kB / 0.5442 GB, free: 5.656 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/0.7095, allocations: 0.673 MB / 0.5448 GB, free: 4.969 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00363/0.7132, allocations: 0.8657 MB / 0.5457 GB, free: 4.102 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2474/0.9606, allocations: 10.33 MB / 0.5558 GB, free: 140.1 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003973/0.9646, allocations: 227.1 kB / 0.556 GB, free: 140.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000504/0.9651, allocations: 169 kB / 0.5562 GB, free: 140.1 MB / 478.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 (430): * Single equations (assignments): 420 * 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,3,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.003835/0.969, allocations: 1.625 MB / 0.5577 GB, free: 139.6 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001226/0.9702, allocations: 407.2 kB / 0.5581 GB, free: 139.6 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008672/0.9789, allocations: 4.503 MB / 0.5625 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.972e-05/0.979, allocations: 32.06 kB / 0.5626 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.079e-05/0.979, allocations: 7.219 kB / 0.5626 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-05/0.979, allocations: 12.7 kB / 0.5626 GB, free: 137.6 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01915/0.9982, allocations: 9.899 MB / 0.5722 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.641e-05/0.9983, allocations: 4.906 kB / 0.5723 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002286/1.001, allocations: 0.5038 MB / 0.5727 GB, free: 133.2 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002102/1.003, allocations: 0.7298 MB / 0.5735 GB, free: 133 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002304/1.003, allocations: 78.78 kB / 0.5735 GB, free: 132.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01282/1.016, allocations: 14.13 MB / 0.5873 GB, free: 121.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/1.016, allocations: 13.14 kB / 0.5873 GB, free: 121.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01071/1.027, allocations: 6.613 MB / 0.5938 GB, free: 118.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002369/1.029, allocations: 0.7928 MB / 0.5946 GB, free: 118.3 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000809/1.03, allocations: 65.97 kB / 0.5946 GB, free: 118.3 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002123/1.032, allocations: 163.2 kB / 0.5948 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004087/1.032, allocations: 214.9 kB / 0.595 GB, free: 118.2 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001627/1.032, allocations: 86.95 kB / 0.5951 GB, free: 118.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003571/1.036, allocations: 2.303 MB / 0.5973 GB, free: 117.3 MB / 478.1 MB Notification: Performance of sort global known variables: time 4.91e-07/1.036, allocations: 0 / 0.5973 GB, free: 117.3 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004667/1.041, allocations: 1.094 MB / 0.5984 GB, free: 117.2 MB / 478.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.strayReluctance.Phi.re,smeeM.stator.strayReluctance.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 (238): * Single equations (assignments): 228 * 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,3,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.01006/1.051, allocations: 7.374 MB / 0.6056 GB, free: 111.1 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006818/1.058, allocations: 4.682 MB / 0.6102 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.058, allocations: 4 kB / 0.6102 GB, free: 106.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00398/1.062, allocations: 2.831 MB / 0.6129 GB, free: 103.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004818/1.067, allocations: 0.9091 MB / 0.6138 GB, free: 102.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05851/1.125, allocations: 39.22 MB / 0.6521 GB, free: 61.76 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002838/1.128, allocations: 3.499 MB / 0.6555 GB, free: 58.22 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002795/1.131, allocations: 0.864 MB / 0.6564 GB, free: 57.35 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002551/1.133, allocations: 2.225 MB / 0.6586 GB, free: 55.12 MB / 478.1 MB Notification: Performance of SimCode: time 1.463e-06/1.133, allocations: 3.938 kB / 0.6586 GB, free: 55.12 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.478/1.611, allocations: 93.82 MB / 0.7502 GB, free: 154.5 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.89/19.5, allocations: 2.406 kB / 0.7502 GB, free: 154.5 MB / 0.4981 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMEE_Generator.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches