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.001452/0.001452, allocations: 106.6 kB / 17.72 MB, free: 5.324 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.001544/0.001544, allocations: 194.9 kB / 18.67 MB, free: 4.387 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.473/1.473, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001678/0.001678, allocations: 55.92 kB / 328.1 MB, free: 3.754 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09217/0.09386, allocations: 46.63 MB / 374.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.2374/0.3313, allocations: 40.02 MB / 414.7 MB, free: 2.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02944/0.3608, allocations: 10.55 MB / 425.3 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01311/0.374, allocations: 262.4 kB / 425.5 MB, free: 10.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02379/0.3979, allocations: 8.532 MB / 434.1 MB, free: 3.625 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01616/0.414, allocations: 3.638 MB / 437.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008717/0.4228, allocations: 2.385 MB / 440.1 MB, free: 14.32 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.02258/0.4454, allocations: 13.42 MB / 453.5 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04723/0.4927, allocations: 25.36 MB / 478.9 MB, free: 7.328 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.014/0.5067, allocations: 7.036 MB / 485.9 MB, free: 280 kB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01555/0.5223, allocations: 8.059 MB / 494 MB, free: 8.184 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006621/0.529, allocations: 1.992 MB / 496 MB, free: 6.191 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00877/0.5378, allocations: 2.374 MB / 498.3 MB, free: 3.82 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007334/0.5452, allocations: 4.154 MB / 0.4907 GB, free: 15.66 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01666/0.5619, allocations: 7.824 MB / 0.4983 GB, free: 7.801 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04261/0.6045, allocations: 26.49 MB / 0.5242 GB, free: 13.22 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.259e-05/0.6046, allocations: 0 / 0.5242 GB, free: 13.22 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.466e-06/0.6046, allocations: 0 / 0.5242 GB, free: 13.22 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001048/0.6057, allocations: 3.938 kB / 0.5242 GB, free: 13.22 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.05426/0.66, allocations: 15.89 MB / 0.5397 GB, free: 13.19 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.648e-05/0.66, allocations: 8.031 kB / 0.5398 GB, free: 13.18 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007152/0.6672, allocations: 1.798 MB / 0.5415 GB, free: 11.38 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.05233/0.7195, allocations: 9.183 MB / 0.5505 GB, free: 2.172 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3895/1.109, allocations: 7.527 MB / 0.5578 GB, free: 132.1 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001321/1.11, allocations: 0.9436 MB / 0.5587 GB, free: 131.7 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005979/1.116, allocations: 1.24 MB / 0.56 GB, free: 131.3 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05508/1.172, allocations: 20.15 MB / 0.5796 GB, free: 123.4 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007692/1.172, allocations: 20.67 kB / 0.5797 GB, free: 123.4 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004728/1.177, allocations: 0.5095 MB / 0.5802 GB, free: 123 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007566/1.178, allocations: 0.7398 MB / 0.5809 GB, free: 123 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04005/1.218, allocations: 18.98 MB / 0.5994 GB, free: 110.5 MB / 478.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1025/1.321, allocations: 62.81 MB / 0.6608 GB, free: 47.23 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.03627/1.357, allocations: 56.99 MB / 0.7164 GB, free: 15.36 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00813/1.365, allocations: 4.09 MB / 0.7204 GB, free: 11.25 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0209/1.386, allocations: 11.37 MB / 0.7315 GB, free: 28 kB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.135e-05/1.386, allocations: 73.31 kB / 0.7316 GB, free: 15.95 MB / 0.5138 GB Notification: Performance of pre-optimization done (n=349): time 5.801e-06/1.386, allocations: 0 / 0.7316 GB, free: 15.95 MB / 0.5138 GB Notification: Performance of matching and sorting (n=389): time 0.2366/1.623, allocations: 18.29 MB / 0.7495 GB, free: 166 MB / 0.5138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.503e-05/1.623, allocations: 93.62 kB / 0.7495 GB, free: 165.9 MB / 0.5138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008029/1.631, allocations: 5.469 MB / 0.7549 GB, free: 164.8 MB / 0.5138 GB Notification: Performance of collectPreVariables (initialization): time 0.0008406/1.632, allocations: 91.8 kB / 0.755 GB, free: 164.7 MB / 0.5138 GB Notification: Performance of collectInitialEqns (initialization): time 0.004341/1.636, allocations: 6.097 MB / 0.7609 GB, free: 162.1 MB / 0.5138 GB Notification: Performance of collectInitialBindings (initialization): time 0.001904/1.638, allocations: 1.437 MB / 0.7623 GB, free: 161.2 MB / 0.5138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00263/1.641, allocations: 1.522 MB / 0.7638 GB, free: 160.4 MB / 0.5138 GB Notification: Performance of setup shared object (initialization): time 5.191e-05/1.641, allocations: 302.9 kB / 0.7641 GB, free: 160.1 MB / 0.5138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005277/1.646, allocations: 3.077 MB / 0.7671 GB, free: 159 MB / 0.5138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007808/1.654, allocations: 6.755 MB / 0.7737 GB, free: 153 MB / 0.5138 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01217/1.666, allocations: 10.59 MB / 0.784 GB, free: 144.8 MB / 0.5138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002193/1.666, allocations: 35.47 kB / 0.7841 GB, free: 144.8 MB / 0.5138 GB Notification: Performance of matching and sorting (n=982) (initialization): time 0.01993/1.686, allocations: 10.82 MB / 0.7946 GB, free: 140.4 MB / 0.5138 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001307/1.686, allocations: 64.45 kB / 0.7947 GB, free: 140.4 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000236/1.687, allocations: 125 kB / 0.7948 GB, free: 140.4 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002589/1.689, allocations: 0.9693 MB / 0.7958 GB, free: 140.1 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006644/1.696, allocations: 1.817 MB / 0.7976 GB, free: 139.9 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01006/1.706, allocations: 10.24 MB / 0.8076 GB, free: 132.9 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006751/1.713, allocations: 451.2 kB / 0.808 GB, free: 132.8 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001447/1.714, allocations: 424.6 kB / 0.8084 GB, free: 132.7 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.007813/1.722, allocations: 4.451 MB / 0.8127 GB, free: 130.5 MB / 0.5138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001378/1.724, allocations: 0.5726 MB / 0.8133 GB, free: 130.2 MB / 0.5138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009429/1.733, allocations: 6.52 MB / 0.8197 GB, free: 125.1 MB / 0.5138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.269e-05/1.733, allocations: 40 kB / 0.8197 GB, free: 125.1 MB / 0.5138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.399e-05/1.733, allocations: 8 kB / 0.8197 GB, free: 125.1 MB / 0.5138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.472e-05/1.733, allocations: 25.88 kB / 0.8197 GB, free: 125.1 MB / 0.5138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02445/1.758, allocations: 15.95 MB / 0.8353 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.336e-05/1.758, allocations: 4 kB / 0.8353 GB, free: 110.8 MB / 0.5138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002994/1.761, allocations: 0.7571 MB / 0.836 GB, free: 110.1 MB / 0.5138 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001964/1.763, allocations: 0.7924 MB / 0.8368 GB, free: 109.3 MB / 0.5138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003098/1.763, allocations: 91.62 kB / 0.8369 GB, free: 109.2 MB / 0.5138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00815/1.771, allocations: 9.339 MB / 0.846 GB, free: 99.44 MB / 0.5138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.948e-06/1.771, allocations: 7.938 kB / 0.846 GB, free: 99.43 MB / 0.5138 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01231/1.783, allocations: 9.566 MB / 0.8554 GB, free: 89.76 MB / 0.5138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002554/1.786, allocations: 1.099 MB / 0.8564 GB, free: 88.64 MB / 0.5138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00113/1.787, allocations: 72 kB / 0.8565 GB, free: 88.57 MB / 0.5138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002656/1.79, allocations: 227.8 kB / 0.8567 GB, free: 88.35 MB / 0.5138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005161/1.79, allocations: 262.7 kB / 0.857 GB, free: 88.09 MB / 0.5138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002338/1.791, allocations: 112 kB / 0.8571 GB, free: 87.98 MB / 0.5138 GB Notification: Performance of sorting global known variables: time 0.005608/1.796, allocations: 3.599 MB / 0.8606 GB, free: 84.41 MB / 0.5138 GB Notification: Performance of sort global known variables: time 4.1e-07/1.796, allocations: 1.094 kB / 0.8606 GB, free: 84.41 MB / 0.5138 GB Notification: Performance of remove unused functions: time 0.01004/1.806, allocations: 1.988 MB / 0.8626 GB, free: 82.42 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.01469/1.821, allocations: 10.28 MB / 0.8726 GB, free: 72.03 MB / 0.5138 GB Notification: Performance of simCode: created initialization part: time 0.01136/1.832, allocations: 8.08 MB / 0.8805 GB, free: 63.89 MB / 0.5138 GB Notification: Performance of simCode: created event and clocks part: time 1.181e-05/1.833, allocations: 5.203 kB / 0.8805 GB, free: 63.88 MB / 0.5138 GB Notification: Performance of simCode: created simulation system equations: time 0.005094/1.838, allocations: 3.537 MB / 0.8839 GB, free: 60.27 MB / 0.5138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006298/1.844, allocations: 1.314 MB / 0.8852 GB, free: 58.96 MB / 0.5138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3439/2.188, allocations: 70.57 MB / 0.9541 GB, free: 173.5 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01138/2.199, allocations: 7.594 MB / 0.9616 GB, free: 170.9 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.007536/2.207, allocations: 2.351 MB / 0.9638 GB, free: 170.7 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006472/2.213, allocations: 4.518 MB / 0.9683 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of SimCode: time 1.092e-06/2.213, allocations: 0 / 0.9683 GB, free: 166.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2101/2.423, allocations: 153.2 MB / 1.118 GB, free: 25.75 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.99/27.41, allocations: 4.875 kB / 1.118 GB, free: 25.75 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