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.001493/0.001493, allocations: 118.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00186/0.00186, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 59.89 kB / 358.3 MB, free: 13.35 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2548, allocations: 50.54 MB / 408.8 MB, free: 1.496 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.04079/0.2957, allocations: 40.07 MB / 448.9 MB, free: 9.246 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02208/0.3178, allocations: 10.64 MB / 459.5 MB, free: 14.56 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008428/0.3263, allocations: 307 kB / 459.8 MB, free: 14.26 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02105/0.3474, allocations: 8.529 MB / 468.4 MB, free: 5.711 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01154/0.3589, allocations: 3.41 MB / 471.8 MB, free: 2.285 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006763/0.3657, allocations: 2.367 MB / 474.1 MB, free: 15.93 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01546/0.3812, allocations: 12.96 MB / 487.1 MB, free: 2.922 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03558/0.4168, allocations: 25.31 MB / 0.5004 GB, free: 9.465 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.012/0.4289, allocations: 6.83 MB / 0.5071 GB, free: 2.617 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0128/0.4417, allocations: 7.837 MB / 0.5147 GB, free: 10.75 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006045/0.4478, allocations: 1.953 MB / 0.5166 GB, free: 8.801 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008029/0.4558, allocations: 2.359 MB / 0.5189 GB, free: 6.441 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006977/0.4629, allocations: 3.955 MB / 0.5228 GB, free: 2.477 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01509/0.478, allocations: 7.56 MB / 0.5302 GB, free: 10.88 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4609/0.9389, allocations: 25.9 MB / 0.5555 GB, free: 55.73 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.675e-06/0.939, allocations: 2.438 kB / 0.5555 GB, free: 55.73 MB / 462.1 MB Notification: Performance of FrontEnd: time 3.647e-06/0.939, allocations: 0 / 0.5555 GB, free: 55.73 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0008169/0.9398, allocations: 2.25 kB / 0.5555 GB, free: 55.73 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.04602/0.9859, allocations: 15.05 MB / 0.5702 GB, free: 49.2 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.499e-05/0.9859, allocations: 8.25 kB / 0.5702 GB, free: 49.2 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006342/0.9923, allocations: 1.709 MB / 0.5718 GB, free: 48.77 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03368/1.026, allocations: 6.155 MB / 0.5778 GB, free: 46.36 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0189/1.045, allocations: 8.059 MB / 0.5857 GB, free: 42.16 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007917/1.046, allocations: 0.9032 MB / 0.5866 GB, free: 41.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004881/1.051, allocations: 1.199 MB / 0.5878 GB, free: 41.35 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04566/1.096, allocations: 18.65 MB / 0.606 GB, free: 24.04 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000676/1.097, allocations: 23.36 kB / 0.606 GB, free: 24.02 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004613/1.102, allocations: 0.489 MB / 0.6065 GB, free: 23.54 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005703/1.102, allocations: 0.6421 MB / 0.6071 GB, free: 22.89 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03301/1.135, allocations: 16.76 MB / 0.6235 GB, free: 6.121 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1073/1.243, allocations: 58.82 MB / 0.6809 GB, free: 10.82 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02746/1.27, allocations: 33.22 MB / 0.7134 GB, free: 5.699 MB / 0.5451 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006932/1.277, allocations: 3.737 MB / 0.717 GB, free: 1.949 MB / 0.5451 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01922/1.296, allocations: 8.827 MB / 0.7256 GB, free: 9.141 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.704e-05/1.297, allocations: 77.25 kB / 0.7257 GB, free: 9.055 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=349): time 5.41e-06/1.297, allocations: 0 / 0.7257 GB, free: 9.055 MB / 0.5607 GB Notification: Performance of matching and sorting (n=389): time 0.03852/1.335, allocations: 17.56 MB / 0.7429 GB, free: 7.387 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/1.335, allocations: 90.47 kB / 0.7429 GB, free: 7.285 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009309/1.344, allocations: 5.037 MB / 0.7479 GB, free: 2.254 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0006049/1.345, allocations: 89.7 kB / 0.748 GB, free: 2.16 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2102/1.555, allocations: 5.442 MB / 0.7533 GB, free: 217.8 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001434/1.557, allocations: 1.358 MB / 0.7546 GB, free: 217 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00213/1.559, allocations: 1.322 MB / 0.7559 GB, free: 216.9 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 3.735e-05/1.559, allocations: 301.1 kB / 0.7562 GB, free: 216.6 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003889/1.563, allocations: 2.908 MB / 0.759 GB, free: 216.5 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004982/1.568, allocations: 5.874 MB / 0.7647 GB, free: 212 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009803/1.578, allocations: 9.441 MB / 0.774 GB, free: 205.1 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001521/1.578, allocations: 28.66 kB / 0.774 GB, free: 205.1 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01753/1.595, allocations: 9.853 MB / 0.7836 GB, free: 201 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 9.54e-05/1.596, allocations: 46.12 kB / 0.7837 GB, free: 201 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001554/1.596, allocations: 101.5 kB / 0.7838 GB, free: 201 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002274/1.598, allocations: 0.9398 MB / 0.7847 GB, free: 200.8 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005492/1.604, allocations: 1.588 MB / 0.7862 GB, free: 200.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01048/1.614, allocations: 10.18 MB / 0.7962 GB, free: 191.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005591/1.62, allocations: 411.9 kB / 0.7966 GB, free: 191.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001303/1.621, allocations: 351.3 kB / 0.7969 GB, free: 190.8 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.007599/1.629, allocations: 4.247 MB / 0.801 GB, free: 187.1 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001526/1.63, allocations: 0.5131 MB / 0.8015 GB, free: 186.6 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.011/1.641, allocations: 6.479 MB / 0.8079 GB, free: 181.1 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.466e-05/1.641, allocations: 40 kB / 0.8079 GB, free: 181.1 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.326e-05/1.641, allocations: 8.875 kB / 0.8079 GB, free: 181.1 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.027e-05/1.641, allocations: 22.73 kB / 0.8079 GB, free: 181.1 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02717/1.669, allocations: 15.71 MB / 0.8233 GB, free: 167.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.622e-05/1.669, allocations: 12.12 kB / 0.8233 GB, free: 167.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003147/1.672, allocations: 0.745 MB / 0.824 GB, free: 166.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002062/1.674, allocations: 0.7879 MB / 0.8248 GB, free: 166.1 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003869/1.674, allocations: 83.97 kB / 0.8249 GB, free: 166 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008655/1.683, allocations: 9.343 MB / 0.834 GB, free: 156.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.317e-06/1.683, allocations: 4.031 kB / 0.834 GB, free: 156.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01293/1.696, allocations: 9.504 MB / 0.8433 GB, free: 146.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002847/1.699, allocations: 1.053 MB / 0.8443 GB, free: 145.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001196/1.7, allocations: 76 kB / 0.8444 GB, free: 145.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002904/1.703, allocations: 219.8 kB / 0.8446 GB, free: 145.3 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006163/1.703, allocations: 270.7 kB / 0.8448 GB, free: 145 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003239/1.704, allocations: 108 kB / 0.8449 GB, free: 144.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.005371/1.709, allocations: 3.363 MB / 0.8482 GB, free: 141.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 6.11e-07/1.709, allocations: 0 / 0.8482 GB, free: 141.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.00714/1.716, allocations: 1.882 MB / 0.8501 GB, free: 139.7 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.01343/1.73, allocations: 10.22 MB / 0.8601 GB, free: 129.3 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0107/1.741, allocations: 7.678 MB / 0.8675 GB, free: 121.6 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 7.554e-06/1.741, allocations: 0 / 0.8675 GB, free: 121.6 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.005182/1.746, allocations: 3.559 MB / 0.871 GB, free: 117.9 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007239/1.753, allocations: 1.301 MB / 0.8723 GB, free: 116.7 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1044/1.858, allocations: 64.85 MB / 0.9356 GB, free: 48.02 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01092/1.868, allocations: 7.327 MB / 0.9428 GB, free: 40.65 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006066/1.875, allocations: 2.162 MB / 0.9449 GB, free: 38.49 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005751/1.88, allocations: 4.338 MB / 0.9491 GB, free: 34.15 MB / 0.5763 GB Notification: Performance of SimCode: time 8.82e-07/1.88, allocations: 0 / 0.9491 GB, free: 34.15 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 4.581/6.461, allocations: 147.7 MB / 1.093 GB, free: 108.1 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.37/35.83, allocations: 4.828 kB / 1.093 GB, free: 108.1 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 & /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