Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.SynchronousMachines.SMEE_Generator,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001313/0.001313, allocations: 106.5 kB / 17.06 MB, free: 6.102 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.001221/0.001221, allocations: 193.4 kB / 18 MB, free: 5.172 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.402/1.402, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 55.91 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2795/0.2809, allocations: 49.43 MB / 400.3 MB, free: 8.398 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator): time 0.02782/0.3088, allocations: 24.12 MB / 424.4 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0167/0.3256, allocations: 7.115 MB / 431.5 MB, free: 9.434 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005099/0.3307, allocations: 143.5 kB / 431.6 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005658/0.3364, allocations: 1.572 MB / 433.2 MB, free: 7.707 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009109/0.3456, allocations: 2.302 MB / 435.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00477/0.3504, allocations: 1.445 MB / 437 MB, free: 3.949 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01155/0.3619, allocations: 7.192 MB / 444.2 MB, free: 12.73 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01098/0.3729, allocations: 5.554 MB / 449.7 MB, free: 7.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007217/0.3802, allocations: 3.193 MB / 452.9 MB, free: 3.887 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007899/0.3882, allocations: 3.829 MB / 456.7 MB, free: 44 kB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003566/0.3918, allocations: 0.8711 MB / 457.6 MB, free: 15.17 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004983/0.3968, allocations: 1.304 MB / 458.9 MB, free: 13.87 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003394/0.4002, allocations: 2.131 MB / 461 MB, free: 11.73 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00739/0.4076, allocations: 3.777 MB / 464.8 MB, free: 7.938 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01782/0.4254, allocations: 11.51 MB / 476.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.305e-06/0.4255, allocations: 0 / 476.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4255, allocations: 4 kB / 476.3 MB, free: 12.39 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003551/0.4259, allocations: 0 / 476.3 MB, free: 12.39 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.02288/0.4488, allocations: 7.579 MB / 483.9 MB, free: 4.715 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.494e-05/0.4488, allocations: 12.03 kB / 483.9 MB, free: 4.703 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001921/0.4508, allocations: 0.774 MB / 484.7 MB, free: 3.918 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006438/0.4572, allocations: 1.25 MB / 485.9 MB, free: 2.664 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009667/0.4669, allocations: 4.16 MB / 490.1 MB, free: 14.43 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004419/0.4674, allocations: 435.8 kB / 490.5 MB, free: 14 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001665/0.4691, allocations: 0.5584 MB / 491.1 MB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01639/0.4855, allocations: 7.284 MB / 498.4 MB, free: 6.105 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001815/0.4857, allocations: 11.94 kB / 498.4 MB, free: 6.094 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007936/0.4865, allocations: 236 kB / 498.6 MB, free: 5.863 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003129/0.4868, allocations: 259.3 kB / 498.9 MB, free: 5.609 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01345/0.5003, allocations: 6.123 MB / 0.4932 GB, free: 15.48 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04706/0.5474, allocations: 23.46 MB / 0.5161 GB, free: 7.387 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01002/0.5574, allocations: 8.71 MB / 0.5246 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004289/0.5618, allocations: 2.371 MB / 0.5269 GB, free: 11.36 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01305/0.5748, allocations: 6.927 MB / 0.5336 GB, free: 4.203 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.721e-05/0.5749, allocations: 60.55 kB / 0.5337 GB, free: 4.133 MB / 462.1 MB Notification: Performance of pre-optimization done (n=238): time 6.262e-06/0.575, allocations: 4 kB / 0.5337 GB, free: 4.129 MB / 462.1 MB Notification: Performance of matching and sorting (n=282): time 0.2503/0.8253, allocations: 13.78 MB / 0.5472 GB, free: 123.1 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.821e-05/0.8254, allocations: 77.31 kB / 0.5472 GB, free: 123 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004753/0.8301, allocations: 3.43 MB / 0.5506 GB, free: 121.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002953/0.8304, allocations: 74.95 kB / 0.5507 GB, free: 121.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001318/0.8318, allocations: 2.754 MB / 0.5534 GB, free: 120 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006679/0.8324, allocations: 1.007 MB / 0.5543 GB, free: 119.3 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008256/0.8333, allocations: 0.6427 MB / 0.555 GB, free: 119 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.536e-05/0.8333, allocations: 301.1 kB / 0.5552 GB, free: 118.7 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002238/0.8356, allocations: 1.545 MB / 0.5568 GB, free: 118.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002568/0.8381, allocations: 2.766 MB / 0.5595 GB, free: 116 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004993/0.8431, allocations: 4.591 MB / 0.5639 GB, free: 112.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.038e-05/0.8432, allocations: 12 kB / 0.564 GB, free: 112.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=472) (initialization): time 0.007973/0.8512, allocations: 5.501 MB / 0.5693 GB, free: 107.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.359e-05/0.8512, allocations: 24 kB / 0.5693 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.923e-05/0.8513, allocations: 36.66 kB / 0.5694 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001376/0.8527, allocations: 0.6569 MB / 0.57 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00274/0.8554, allocations: 0.854 MB / 0.5709 GB, free: 105.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007758/0.8632, allocations: 10.35 MB / 0.581 GB, free: 94.89 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003393/0.8666, allocations: 227.8 kB / 0.5812 GB, free: 94.67 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003171/0.867, allocations: 164 kB / 0.5813 GB, free: 94.51 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 (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.00299/0.8699, allocations: 1.62 MB / 0.5829 GB, free: 92.88 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008085/0.8708, allocations: 409.5 kB / 0.5833 GB, free: 92.48 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006443/0.8772, allocations: 4.494 MB / 0.5877 GB, free: 87.86 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.874e-05/0.8773, allocations: 35.92 kB / 0.5877 GB, free: 87.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.329e-05/0.8773, allocations: 8 kB / 0.5877 GB, free: 87.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-05/0.8773, allocations: 11.95 kB / 0.5878 GB, free: 87.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01369/0.891, allocations: 9.891 MB / 0.5974 GB, free: 77.74 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.265e-05/0.8911, allocations: 10.62 kB / 0.5974 GB, free: 77.73 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001929/0.893, allocations: 0.4921 MB / 0.5979 GB, free: 77.24 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001644/0.8947, allocations: 0.7303 MB / 0.5986 GB, free: 76.49 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002103/0.8949, allocations: 71.97 kB / 0.5987 GB, free: 76.42 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01035/0.9052, allocations: 14.13 MB / 0.6125 GB, free: 61.47 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.08e-06/0.9053, allocations: 4 kB / 0.6125 GB, free: 61.46 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009219/0.9145, allocations: 6.624 MB / 0.619 GB, free: 54.6 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002179/0.9167, allocations: 0.7834 MB / 0.6197 GB, free: 53.79 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005592/0.9173, allocations: 59.98 kB / 0.6198 GB, free: 53.73 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001834/0.9191, allocations: 171.8 kB / 0.6199 GB, free: 53.57 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004653/0.9196, allocations: 209.7 kB / 0.6201 GB, free: 53.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001641/0.9198, allocations: 83.97 kB / 0.6202 GB, free: 53.28 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002996/0.9228, allocations: 2.302 MB / 0.6225 GB, free: 50.99 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.9228, allocations: 0 / 0.6225 GB, free: 50.99 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003689/0.9265, allocations: 1.101 MB / 0.6235 GB, free: 49.9 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 (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.008923/0.9354, allocations: 7.362 MB / 0.6307 GB, free: 42.28 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.006408/0.9419, allocations: 4.695 MB / 0.6353 GB, free: 37.47 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.953e-06/0.9419, allocations: 1 kB / 0.6353 GB, free: 37.47 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00378/0.9457, allocations: 2.848 MB / 0.6381 GB, free: 34.54 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004126/0.9498, allocations: 0.9039 MB / 0.639 GB, free: 33.65 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05845/1.008, allocations: 39.19 MB / 0.6773 GB, free: 8.863 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004128/1.012, allocations: 3.499 MB / 0.6807 GB, free: 5.328 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002991/1.015, allocations: 0.86 MB / 0.6815 GB, free: 4.461 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003321/1.019, allocations: 2.261 MB / 0.6837 GB, free: 2.199 MB / 478.1 MB Notification: Performance of SimCode: time 1.072e-06/1.019, allocations: 0 / 0.6837 GB, free: 2.199 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.381/1.4, allocations: 93.74 MB / 0.7753 GB, free: 152.2 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.05/19.45, allocations: 5.875 kB / 0.7753 GB, free: 152.2 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMEE_Generator.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMEE_Generator/SMEE_Generator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMEE_Generator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches