Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.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.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 4.0.0+maint.om/package.mo): time 0.00124/0.001241, allocations: 110.4 kB / 17.73 MB, free: 5.34 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.001288/0.001288, allocations: 179.1 kB / 18.66 MB, free: 4.414 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.421/1.421, 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.001368/0.001368, allocations: 59.92 kB / 328.1 MB, free: 3.762 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08796/0.08933, allocations: 46.62 MB / 374.7 MB, free: 5.035 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2103/0.2997, allocations: 40.02 MB / 414.7 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02774/0.3275, allocations: 10.56 MB / 425.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0102/0.3377, allocations: 261.2 kB / 425.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02162/0.3594, allocations: 8.601 MB / 434.1 MB, free: 3.613 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01473/0.3742, allocations: 3.71 MB / 437.8 MB, free: 0.582 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008045/0.3823, allocations: 2.392 MB / 440.2 MB, free: 14.19 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02/0.4023, allocations: 13.42 MB / 453.7 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0428/0.4451, allocations: 25.36 MB / 479 MB, free: 7.203 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0115/0.4567, allocations: 7.063 MB / 486.1 MB, free: 124 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01308/0.4698, allocations: 8.059 MB / 494.1 MB, free: 8.031 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006038/0.4759, allocations: 1.992 MB / 496.1 MB, free: 6.039 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009044/0.4849, allocations: 2.374 MB / 498.5 MB, free: 3.668 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008099/0.4931, allocations: 4.15 MB / 0.4909 GB, free: 15.51 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01534/0.5085, allocations: 7.832 MB / 0.4985 GB, free: 7.645 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03739/0.5459, allocations: 26.49 MB / 0.5244 GB, free: 13.07 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.975e-06/0.546, allocations: 0 / 0.5244 GB, free: 13.07 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.546, allocations: 3.938 kB / 0.5244 GB, free: 13.07 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009572/0.547, allocations: 0 / 0.5244 GB, free: 13.07 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: 3512 * Number of variables: 3512 Notification: Performance of Generate backend data structure: time 0.05194/0.5989, allocations: 15.89 MB / 0.5399 GB, free: 13.04 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.164e-05/0.599, allocations: 8.031 kB / 0.5399 GB, free: 13.04 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006525/0.6055, allocations: 1.806 MB / 0.5417 GB, free: 11.22 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05142/0.657, allocations: 9.179 MB / 0.5506 GB, free: 2.02 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3871/1.044, allocations: 7.529 MB / 0.558 GB, free: 132.1 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001042/1.045, allocations: 0.9429 MB / 0.5589 GB, free: 131.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005511/1.051, allocations: 1.247 MB / 0.5601 GB, free: 131.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05716/1.108, allocations: 20.15 MB / 0.5798 GB, free: 123.4 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007879/1.109, allocations: 19.2 kB / 0.5798 GB, free: 123.4 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004427/1.113, allocations: 0.5176 MB / 0.5803 GB, free: 123 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007476/1.114, allocations: 0.7357 MB / 0.581 GB, free: 122.9 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04172/1.156, allocations: 18.98 MB / 0.5996 GB, free: 110.4 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1075/1.263, allocations: 62.82 MB / 0.6609 GB, free: 47.09 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03584/1.299, allocations: 56.99 MB / 0.7166 GB, free: 15.22 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008193/1.307, allocations: 4.09 MB / 0.7206 GB, free: 11.11 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02584/1.333, allocations: 11.37 MB / 0.7317 GB, free: 15.89 MB / 0.5138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.697e-05/1.333, allocations: 69.31 kB / 0.7317 GB, free: 15.82 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 6.152e-06/1.333, allocations: 0 / 0.7317 GB, free: 15.82 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.2398/1.573, allocations: 18.3 MB / 0.7496 GB, free: 165.8 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.41e-05/1.573, allocations: 94.78 kB / 0.7497 GB, free: 165.7 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00716/1.58, allocations: 5.469 MB / 0.755 GB, free: 164.6 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0006226/1.581, allocations: 87.64 kB / 0.7551 GB, free: 164.6 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0034/1.584, allocations: 6.1 MB / 0.7611 GB, free: 162 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.00143/1.586, allocations: 1.438 MB / 0.7625 GB, free: 161 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002185/1.588, allocations: 1.516 MB / 0.764 GB, free: 160.3 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 3.867e-05/1.588, allocations: 303.2 kB / 0.7643 GB, free: 160 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004653/1.593, allocations: 3.08 MB / 0.7673 GB, free: 158.9 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006324/1.599, allocations: 6.752 MB / 0.7739 GB, free: 152.9 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01192/1.611, allocations: 10.59 MB / 0.7842 GB, free: 144.7 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002421/1.611, allocations: 35.88 kB / 0.7842 GB, free: 144.7 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.02031/1.632, allocations: 10.82 MB / 0.7948 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003072/1.632, allocations: 61.94 kB / 0.7949 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003313/1.632, allocations: 127.2 kB / 0.795 GB, free: 140.2 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003027/1.635, allocations: 0.9647 MB / 0.7959 GB, free: 140 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006888/1.642, allocations: 1.819 MB / 0.7977 GB, free: 139.8 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01133/1.654, allocations: 10.25 MB / 0.8077 GB, free: 132.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007365/1.661, allocations: 449.8 kB / 0.8082 GB, free: 132.6 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001928/1.663, allocations: 418.2 kB / 0.8086 GB, free: 132.5 MB / 0.5138 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 572 * 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 (933): * Single equations (assignments): 928 * 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,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01071/1.674, allocations: 4.46 MB / 0.8129 GB, free: 130.3 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002124/1.676, allocations: 0.5666 MB / 0.8135 GB, free: 130 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01354/1.69, allocations: 6.518 MB / 0.8198 GB, free: 124.8 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.711e-05/1.69, allocations: 41.88 kB / 0.8199 GB, free: 124.8 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.009e-05/1.69, allocations: 8 kB / 0.8199 GB, free: 124.8 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.547e-05/1.69, allocations: 22.66 kB / 0.8199 GB, free: 124.7 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03398/1.724, allocations: 15.94 MB / 0.8355 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.411e-05/1.724, allocations: 7.984 kB / 0.8355 GB, free: 110.6 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003417/1.727, allocations: 0.7532 MB / 0.8362 GB, free: 109.8 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002231/1.729, allocations: 0.7846 MB / 0.837 GB, free: 109 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000636/1.73, allocations: 87.97 kB / 0.8371 GB, free: 108.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009294/1.739, allocations: 9.355 MB / 0.8462 GB, free: 99.15 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.919e-06/1.74, allocations: 11.92 kB / 0.8462 GB, free: 99.14 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01551/1.755, allocations: 9.559 MB / 0.8555 GB, free: 89.48 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003263/1.758, allocations: 1.102 MB / 0.8566 GB, free: 88.35 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001692/1.76, allocations: 71.81 kB / 0.8567 GB, free: 88.29 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003451/1.764, allocations: 227.7 kB / 0.8569 GB, free: 88.06 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007515/1.764, allocations: 258.7 kB / 0.8572 GB, free: 87.81 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000416/1.765, allocations: 116 kB / 0.8573 GB, free: 87.7 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.006542/1.771, allocations: 3.599 MB / 0.8608 GB, free: 84.12 MB / 0.5138 GB Notification: Performance of sort global known variables: time 5.41e-07/1.771, allocations: 0 / 0.8608 GB, free: 84.12 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.009478/1.781, allocations: 1.988 MB / 0.8627 GB, free: 82.13 MB / 0.5138 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%), (1,1,100.0%), (8,38,65.6%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01489/1.796, allocations: 10.28 MB / 0.8728 GB, free: 71.74 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01207/1.808, allocations: 8.08 MB / 0.8806 GB, free: 63.6 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 8.816e-06/1.808, allocations: 0 / 0.8806 GB, free: 63.6 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005109/1.813, allocations: 3.54 MB / 0.8841 GB, free: 59.98 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008883/1.822, allocations: 1.313 MB / 0.8854 GB, free: 58.68 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3362/2.158, allocations: 70.56 MB / 0.9543 GB, free: 173.6 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01587/2.174, allocations: 7.596 MB / 0.9617 GB, free: 171 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.009122/2.183, allocations: 2.354 MB / 0.964 GB, free: 170.8 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008985/2.192, allocations: 4.521 MB / 0.9684 GB, free: 167 MB / 0.5294 GB Notification: Performance of SimCode: time 3.236e-06/2.192, allocations: 0 / 0.9684 GB, free: 167 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.217/2.409, allocations: 153.2 MB / 1.118 GB, free: 25.64 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.91/26.32, allocations: 0.875 kB / 1.118 GB, free: 25.64 MB / 0.5294 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_CurrentSource/SMR_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches