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.001518/0.001518, allocations: 104.8 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001798/0.001798, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 227.4 MB / 246.3 MB, free: 9.039 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 61.19 kB / 306.4 MB, free: 0.6719 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08333/0.08457, allocations: 50.54 MB / 356.9 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1798/0.2644, allocations: 39.34 MB / 396.3 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02205/0.2865, allocations: 10.53 MB / 406.8 MB, free: 6.047 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008847/0.2954, allocations: 295.1 kB / 407.1 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01851/0.3139, allocations: 7.99 MB / 415.1 MB, free: 176 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01309/0.3271, allocations: 3.105 MB / 418.2 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007092/0.3342, allocations: 2.204 MB / 420.4 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01535/0.3495, allocations: 13.04 MB / 433.4 MB, free: 15.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03381/0.3834, allocations: 20.57 MB / 454 MB, free: 10.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008739/0.3921, allocations: 5.88 MB / 459.9 MB, free: 5.004 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009985/0.4021, allocations: 7.396 MB / 467.3 MB, free: 13.58 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00348/0.4056, allocations: 1.301 MB / 468.6 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005439/0.4111, allocations: 1.71 MB / 470.3 MB, free: 10.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004142/0.4153, allocations: 3.272 MB / 473.6 MB, free: 7.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01051/0.4258, allocations: 6.876 MB / 480.4 MB, free: 392 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02546/0.4513, allocations: 25.27 MB / 0.4939 GB, free: 7.035 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.4513, allocations: 0 / 0.4939 GB, free: 7.035 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4513, allocations: 4 kB / 0.4939 GB, free: 7.031 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.000559/0.4519, allocations: 0 / 0.4939 GB, free: 7.031 MB / 414.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.03859/0.4905, allocations: 15.08 MB / 0.5086 GB, free: 7.832 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.4905, allocations: 8.031 kB / 0.5086 GB, free: 7.824 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005128/0.4957, allocations: 1.711 MB / 0.5103 GB, free: 6.102 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03158/0.5273, allocations: 6.124 MB / 0.5162 GB, free: 15.95 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0142/0.5415, allocations: 7.801 MB / 0.5239 GB, free: 8.074 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007508/0.5423, allocations: 0.9149 MB / 0.5248 GB, free: 7.156 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003712/0.546, allocations: 1.199 MB / 0.5259 GB, free: 5.957 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3261/0.8721, allocations: 18.65 MB / 0.5441 GB, free: 120.1 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002773/0.8724, allocations: 18.62 kB / 0.5442 GB, free: 120.1 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00146/0.8739, allocations: 0.4963 MB / 0.5446 GB, free: 119.7 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005735/0.8745, allocations: 0.6384 MB / 0.5453 GB, free: 119.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02897/0.9034, allocations: 16.76 MB / 0.5616 GB, free: 113.1 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0729/0.9764, allocations: 59.55 MB / 0.6198 GB, free: 57.65 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01616/0.9926, allocations: 33.21 MB / 0.6522 GB, free: 20.53 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004502/0.9971, allocations: 3.762 MB / 0.6559 GB, free: 16.76 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01178/1.009, allocations: 8.874 MB / 0.6646 GB, free: 7.855 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/1.009, allocations: 73.3 kB / 0.6646 GB, free: 7.773 MB / 446.1 MB Notification: Performance of pre-optimization done (n=349): time 4.588e-06/1.009, allocations: 0 / 0.6646 GB, free: 7.773 MB / 446.1 MB Notification: Performance of matching and sorting (n=389): time 0.02968/1.039, allocations: 17.55 MB / 0.6818 GB, free: 6.066 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.652e-05/1.039, allocations: 98.41 kB / 0.6819 GB, free: 5.957 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006332/1.045, allocations: 5.033 MB / 0.6868 GB, free: 0.9297 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002565/1.045, allocations: 85.7 kB / 0.6869 GB, free: 0.8398 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003126/1.048, allocations: 5.467 MB / 0.6922 GB, free: 11.4 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001002/1.049, allocations: 1.354 MB / 0.6935 GB, free: 10.05 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00174/1.051, allocations: 1.314 MB / 0.6948 GB, free: 8.73 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 7.844e-05/1.051, allocations: 301.1 kB / 0.6951 GB, free: 8.434 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003945/1.055, allocations: 2.914 MB / 0.6979 GB, free: 5.516 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005571/1.061, allocations: 5.875 MB / 0.7037 GB, free: 14.24 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01029/1.071, allocations: 9.444 MB / 0.7129 GB, free: 3.355 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.237e-05/1.071, allocations: 28 kB / 0.7129 GB, free: 3.328 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.1757/1.247, allocations: 9.843 MB / 0.7225 GB, free: 152.6 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.372e-05/1.247, allocations: 47.5 kB / 0.7226 GB, free: 152.6 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001434/1.247, allocations: 100.1 kB / 0.7227 GB, free: 152.6 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002221/1.249, allocations: 0.9391 MB / 0.7236 GB, free: 152.6 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0051/1.254, allocations: 1.583 MB / 0.7251 GB, free: 152.6 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/1.265, allocations: 9.485 MB / 0.7344 GB, free: 146.5 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005395/1.27, allocations: 406.2 kB / 0.7348 GB, free: 146.4 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001368/1.272, allocations: 351 kB / 0.7351 GB, free: 146.4 MB / 494.1 MB 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.007638/1.279, allocations: 4.251 MB / 0.7393 GB, free: 144.3 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001218/1.281, allocations: 0.5131 MB / 0.7398 GB, free: 144.3 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009379/1.29, allocations: 6.494 MB / 0.7461 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.716e-05/1.29, allocations: 40.66 kB / 0.7462 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.408e-05/1.29, allocations: 7.812 kB / 0.7462 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.033e-05/1.29, allocations: 20.81 kB / 0.7462 GB, free: 141.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02215/1.312, allocations: 15.74 MB / 0.7616 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-05/1.312, allocations: 3.75 kB / 0.7616 GB, free: 135.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002907/1.315, allocations: 0.7458 MB / 0.7623 GB, free: 135.3 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001921/1.317, allocations: 0.785 MB / 0.7631 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002887/1.318, allocations: 86.7 kB / 0.7631 GB, free: 135.1 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007885/1.325, allocations: 8.654 MB / 0.7716 GB, free: 129 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.488e-06/1.325, allocations: 9.125 kB / 0.7716 GB, free: 129 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01213/1.338, allocations: 9.495 MB / 0.7809 GB, free: 122.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002052/1.34, allocations: 1.052 MB / 0.7819 GB, free: 121.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006711/1.34, allocations: 72 kB / 0.782 GB, free: 121.1 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002082/1.342, allocations: 225.8 kB / 0.7822 GB, free: 120.9 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005094/1.343, allocations: 261.8 kB / 0.7824 GB, free: 120.8 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002198/1.343, allocations: 111.3 kB / 0.7825 GB, free: 120.7 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.003969/1.347, allocations: 3.359 MB / 0.7858 GB, free: 117.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 2.8e-07/1.347, allocations: 0 / 0.7858 GB, free: 117.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00574/1.353, allocations: 1.89 MB / 0.7877 GB, free: 115.7 MB / 494.1 MB 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.01166/1.365, allocations: 10.23 MB / 0.7977 GB, free: 105.3 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.009514/1.374, allocations: 7.646 MB / 0.8051 GB, free: 97.59 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 6.292e-06/1.374, allocations: 0 / 0.8051 GB, free: 97.59 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004024/1.378, allocations: 3.559 MB / 0.8086 GB, free: 93.95 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005091/1.383, allocations: 1.22 MB / 0.8098 GB, free: 92.77 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1066/1.49, allocations: 85.37 MB / 0.8932 GB, free: 15.6 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007041/1.497, allocations: 7.329 MB / 0.9003 GB, free: 8.234 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.1717/1.669, allocations: 2.151 MB / 0.9024 GB, free: 169.3 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005983/1.675, allocations: 4.339 MB / 0.9067 GB, free: 168.5 MB / 0.4982 GB Notification: Performance of SimCode: time 1.042e-06/1.675, allocations: 0 / 0.9067 GB, free: 168.5 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1639/1.839, allocations: 146.8 MB / 1.05 GB, free: 48.49 MB / 0.4982 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001469/1.839, allocations: 292.8 kB / 1.05 GB, free: 48.11 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 4.798/6.637, allocations: 7.781 kB / 1.05 GB, free: 48.11 MB / 0.4982 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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