Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001886/0.001886, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002231/0.002231, allocations: 204.7 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.466/1.466, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001791/0.001791, allocations: 63.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2784, allocations: 50.54 MB / 408.8 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04628/0.3248, allocations: 40.08 MB / 448.9 MB, free: 9.285 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02437/0.3492, allocations: 10.65 MB / 459.5 MB, free: 14.6 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007968/0.3572, allocations: 310.9 kB / 459.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02069/0.378, allocations: 8.516 MB / 468.4 MB, free: 5.758 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01255/0.3905, allocations: 3.418 MB / 471.8 MB, free: 2.324 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007422/0.398, allocations: 2.363 MB / 474.1 MB, free: 15.96 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01907/0.417, allocations: 12.95 MB / 487.1 MB, free: 2.965 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0392/0.4563, allocations: 25.32 MB / 0.5004 GB, free: 9.496 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01146/0.4678, allocations: 6.794 MB / 0.507 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01335/0.4812, allocations: 7.837 MB / 0.5147 GB, free: 10.82 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006025/0.4872, allocations: 1.957 MB / 0.5166 GB, free: 8.859 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007897/0.4952, allocations: 2.363 MB / 0.5189 GB, free: 6.5 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007227/0.5024, allocations: 3.951 MB / 0.5228 GB, free: 2.539 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01524/0.5177, allocations: 7.556 MB / 0.5301 GB, free: 10.95 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4894/1.007, allocations: 25.97 MB / 0.5555 GB, free: 55.55 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/1.007, allocations: 2.406 kB / 0.5555 GB, free: 55.55 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.383e-06/1.007, allocations: 0 / 0.5555 GB, free: 55.55 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007206/1.008, allocations: 0 / 0.5555 GB, free: 55.55 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3329 * Number of variables: 3329 Notification: Performance of Generate backend data structure: time 0.04285/1.051, allocations: 15.33 MB / 0.5705 GB, free: 48.72 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.178e-05/1.051, allocations: 14.03 kB / 0.5705 GB, free: 48.72 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006326/1.057, allocations: 1.713 MB / 0.5722 GB, free: 48.29 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03264/1.09, allocations: 6.217 MB / 0.5782 GB, free: 45.83 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01597/1.106, allocations: 8.099 MB / 0.5861 GB, free: 41.59 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009463/1.107, allocations: 0.9028 MB / 0.587 GB, free: 41.18 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005405/1.112, allocations: 1.19 MB / 0.5882 GB, free: 40.78 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04151/1.154, allocations: 18.66 MB / 0.6064 GB, free: 23.49 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005424/1.154, allocations: 23.17 kB / 0.6064 GB, free: 23.47 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004203/1.159, allocations: 0.4969 MB / 0.6069 GB, free: 22.98 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005302/1.159, allocations: 0.6382 MB / 0.6075 GB, free: 22.34 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03733/1.196, allocations: 16.76 MB / 0.6239 GB, free: 5.57 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.123/1.32, allocations: 58.98 MB / 0.6815 GB, free: 10.12 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03162/1.351, allocations: 33.21 MB / 0.7139 GB, free: 5.008 MB / 0.5451 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007458/1.359, allocations: 3.737 MB / 0.7176 GB, free: 1.258 MB / 0.5451 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02025/1.379, allocations: 8.845 MB / 0.7262 GB, free: 8.441 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.422e-05/1.379, allocations: 77.25 kB / 0.7263 GB, free: 8.355 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=349): time 5.28e-06/1.379, allocations: 3.375 kB / 0.7263 GB, free: 8.355 MB / 0.5607 GB Notification: Performance of matching and sorting (n=389): time 0.04115/1.42, allocations: 17.72 MB / 0.7436 GB, free: 6.555 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.074e-05/1.42, allocations: 94.47 kB / 0.7437 GB, free: 6.449 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01043/1.431, allocations: 5.038 MB / 0.7486 GB, free: 1.418 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007956/1.432, allocations: 97.7 kB / 0.7487 GB, free: 1.316 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2288/1.66, allocations: 5.64 MB / 0.7542 GB, free: 216.9 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002152/1.663, allocations: 1.418 MB / 0.7556 GB, free: 216 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002794/1.665, allocations: 1.326 MB / 0.7569 GB, free: 215.9 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.45e-05/1.666, allocations: 301.1 kB / 0.7572 GB, free: 215.6 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003958/1.67, allocations: 2.907 MB / 0.76 GB, free: 215.6 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004836/1.674, allocations: 5.878 MB / 0.7658 GB, free: 211 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009268/1.684, allocations: 9.442 MB / 0.775 GB, free: 204 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001236/1.684, allocations: 26.94 kB / 0.775 GB, free: 204 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01617/1.7, allocations: 9.879 MB / 0.7846 GB, free: 199.9 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001448/1.7, allocations: 46.41 kB / 0.7847 GB, free: 199.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001933/1.7, allocations: 99.94 kB / 0.7848 GB, free: 199.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002321/1.703, allocations: 0.9361 MB / 0.7857 GB, free: 199.7 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00558/1.708, allocations: 1.581 MB / 0.7872 GB, free: 199.5 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01063/1.719, allocations: 10.2 MB / 0.7972 GB, free: 190.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006141/1.725, allocations: 407.9 kB / 0.7976 GB, free: 190.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001509/1.727, allocations: 351 kB / 0.7979 GB, free: 189.9 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 455 * 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 (816): * Single equations (assignments): 811 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (1,1,100.0%), (8,38,59.4%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0093/1.736, allocations: 4.246 MB / 0.8021 GB, free: 186.2 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001761/1.738, allocations: 0.5432 MB / 0.8026 GB, free: 185.7 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01175/1.75, allocations: 6.495 MB / 0.8089 GB, free: 180.2 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.568e-05/1.75, allocations: 40 kB / 0.809 GB, free: 180.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.213e-05/1.75, allocations: 8 kB / 0.809 GB, free: 180.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.933e-05/1.75, allocations: 18.28 kB / 0.809 GB, free: 180.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03136/1.781, allocations: 15.71 MB / 0.8244 GB, free: 166.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.932e-05/1.781, allocations: 0 / 0.8244 GB, free: 166.5 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003105/1.784, allocations: 0.7493 MB / 0.8251 GB, free: 165.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001999/1.786, allocations: 0.784 MB / 0.8258 GB, free: 164.9 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005215/1.787, allocations: 83.98 kB / 0.8259 GB, free: 164.8 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008615/1.795, allocations: 9.358 MB / 0.8351 GB, free: 155.1 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.56e-06/1.795, allocations: 7.938 kB / 0.8351 GB, free: 155 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01437/1.81, allocations: 9.522 MB / 0.8444 GB, free: 145.4 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002817/1.813, allocations: 1.083 MB / 0.8454 GB, free: 144.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001525/1.814, allocations: 79.98 kB / 0.8455 GB, free: 144.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003275/1.818, allocations: 217.4 kB / 0.8457 GB, free: 144 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007407/1.818, allocations: 266.7 kB / 0.846 GB, free: 143.8 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004472/1.819, allocations: 112 kB / 0.8461 GB, free: 143.6 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006315/1.825, allocations: 3.363 MB / 0.8494 GB, free: 140.3 MB / 0.5763 GB Notification: Performance of sort global known variables: time 7.71e-07/1.825, allocations: 0 / 0.8494 GB, free: 140.3 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0084/1.834, allocations: 1.879 MB / 0.8512 GB, free: 138.4 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 4 (inertiaLoad.w,quadraticSpeedDependentTorque.phi,inertiaLoadQS.w,quadraticSpeedDependentTorqueQS.phi) * 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 (368): * Single equations (assignments): 363 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * 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): 3 systems {(1,1,100.0%), (8,38,59.4%), (1,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.01465/1.848, allocations: 10.24 MB / 0.8612 GB, free: 128.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01119/1.859, allocations: 7.675 MB / 0.8687 GB, free: 120.3 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.604e-06/1.859, allocations: 7.578 kB / 0.8687 GB, free: 120.3 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005142/1.865, allocations: 3.571 MB / 0.8722 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008268/1.873, allocations: 1.294 MB / 0.8735 GB, free: 115.4 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1116/1.985, allocations: 65.22 MB / 0.9371 GB, free: 46.35 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01229/1.997, allocations: 7.329 MB / 0.9443 GB, free: 38.98 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.005473/2.002, allocations: 2.156 MB / 0.9464 GB, free: 36.82 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006608/2.009, allocations: 4.334 MB / 0.9506 GB, free: 32.49 MB / 0.5763 GB Notification: Performance of SimCode: time 9.42e-07/2.009, allocations: 4 kB / 0.9506 GB, free: 32.48 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4193/2.428, allocations: 147.4 MB / 1.095 GB, free: 106.7 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.17/25.59, allocations: 16.47 kB / 1.095 GB, free: 106.7 MB / 0.5763 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches