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.001134/0.001134, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001223/0.001223, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.341/1.341, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001278/0.001278, allocations: 58.09 kB / 307.1 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08536/0.08666, allocations: 50.53 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.1985/0.2852, allocations: 40.08 MB / 397.7 MB, free: 13.19 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02364/0.3089, allocations: 10.65 MB / 408.3 MB, free: 5.348 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007931/0.3168, allocations: 306.5 kB / 408.6 MB, free: 5.285 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02011/0.337, allocations: 8.52 MB / 417.2 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01207/0.3491, allocations: 3.415 MB / 420.6 MB, free: 12.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006943/0.3561, allocations: 2.373 MB / 422.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0155/0.3716, allocations: 12.86 MB / 435.8 MB, free: 13.6 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03913/0.4107, allocations: 25.4 MB / 461.2 MB, free: 4.051 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01133/0.4221, allocations: 6.787 MB / 468 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01151/0.4336, allocations: 7.845 MB / 475.8 MB, free: 5.375 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005494/0.4392, allocations: 1.949 MB / 477.8 MB, free: 3.426 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007681/0.4469, allocations: 2.378 MB / 480.2 MB, free: 1.047 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006075/0.453, allocations: 3.955 MB / 484.1 MB, free: 13.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01222/0.4653, allocations: 7.564 MB / 491.7 MB, free: 5.484 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02732/0.4926, allocations: 25.73 MB / 0.5053 GB, free: 11.68 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.4927, allocations: 4 kB / 0.5053 GB, free: 11.68 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4927, allocations: 0 / 0.5053 GB, free: 11.68 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0007329/0.4934, allocations: 0 / 0.5053 GB, free: 11.68 MB / 430.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.04365/0.5371, allocations: 15.08 MB / 0.52 GB, free: 12.48 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.5371, allocations: 8.031 kB / 0.52 GB, free: 12.47 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005413/0.5426, allocations: 1.711 MB / 0.5217 GB, free: 10.75 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03416/0.5767, allocations: 6.12 MB / 0.5277 GB, free: 4.605 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.3143/0.8911, allocations: 7.825 MB / 0.5353 GB, free: 126.3 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007441/0.8919, allocations: 0.9115 MB / 0.5362 GB, free: 125.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003727/0.8956, allocations: 1.198 MB / 0.5374 GB, free: 125.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03916/0.9348, allocations: 18.66 MB / 0.5556 GB, free: 118.2 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002952/0.9351, allocations: 28.05 kB / 0.5556 GB, free: 118.2 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001457/0.9366, allocations: 498.7 kB / 0.5561 GB, free: 117.8 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004412/0.937, allocations: 0.6367 MB / 0.5567 GB, free: 117.7 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02804/0.9651, allocations: 16.76 MB / 0.5731 GB, free: 106.9 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07257/1.038, allocations: 59.55 MB / 0.6312 GB, free: 46.55 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01929/1.057, allocations: 33.21 MB / 0.6637 GB, free: 9.434 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005759/1.063, allocations: 3.769 MB / 0.6673 GB, free: 5.664 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01322/1.076, allocations: 8.871 MB / 0.676 GB, free: 12.76 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.833e-05/1.076, allocations: 73.25 kB / 0.6761 GB, free: 12.68 MB / 462.1 MB Notification: Performance of pre-optimization done (n=349): time 4.819e-06/1.076, allocations: 0 / 0.6761 GB, free: 12.68 MB / 462.1 MB Notification: Performance of matching and sorting (n=389): time 0.03514/1.111, allocations: 17.55 MB / 0.6932 GB, free: 10.97 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.364e-05/1.111, allocations: 90.47 kB / 0.6933 GB, free: 10.87 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00732/1.119, allocations: 5.037 MB / 0.6982 GB, free: 5.84 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007047/1.119, allocations: 89.7 kB / 0.6983 GB, free: 5.746 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003308/1.123, allocations: 5.449 MB / 0.7036 GB, free: 272 kB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001569/1.124, allocations: 1.353 MB / 0.705 GB, free: 14.92 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001946/1.126, allocations: 1.322 MB / 0.7062 GB, free: 13.59 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.17e-05/1.126, allocations: 305.1 kB / 0.7065 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004423/1.131, allocations: 2.902 MB / 0.7094 GB, free: 10.38 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006288/1.137, allocations: 5.88 MB / 0.7151 GB, free: 3.102 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1822/1.319, allocations: 9.44 MB / 0.7243 GB, free: 150.7 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.213e-05/1.319, allocations: 30.78 kB / 0.7244 GB, free: 150.7 MB / 494.1 MB Notification: Performance of matching and sorting (n=865) (initialization): time 0.0159/1.335, allocations: 9.851 MB / 0.734 GB, free: 146.9 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.589e-05/1.335, allocations: 48.81 kB / 0.734 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001605/1.336, allocations: 99.59 kB / 0.7341 GB, free: 146.9 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002504/1.338, allocations: 0.9442 MB / 0.735 GB, free: 146.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005504/1.344, allocations: 1.579 MB / 0.7366 GB, free: 146.5 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01062/1.354, allocations: 10.19 MB / 0.7465 GB, free: 139.6 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005186/1.36, allocations: 412 kB / 0.7469 GB, free: 139.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008238/1.36, allocations: 354.2 kB / 0.7473 GB, free: 139.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.00576/1.366, allocations: 4.248 MB / 0.7514 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001034/1.367, allocations: 0.5102 MB / 0.7519 GB, free: 137.4 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009701/1.377, allocations: 6.484 MB / 0.7582 GB, free: 134.8 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.758e-05/1.377, allocations: 42.69 kB / 0.7583 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.856e-05/1.377, allocations: 16.16 kB / 0.7583 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.839e-05/1.377, allocations: 19.12 kB / 0.7583 GB, free: 134.7 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02288/1.4, allocations: 15.73 MB / 0.7737 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.281e-05/1.4, allocations: 0 / 0.7737 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002912/1.403, allocations: 0.7439 MB / 0.7744 GB, free: 128.4 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001988/1.405, allocations: 0.7936 MB / 0.7752 GB, free: 127.8 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002408/1.405, allocations: 91.06 kB / 0.7753 GB, free: 127.7 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008244/1.413, allocations: 9.363 MB / 0.7844 GB, free: 118.9 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.076e-06/1.413, allocations: 4.031 kB / 0.7844 GB, free: 118.9 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0124/1.426, allocations: 9.485 MB / 0.7937 GB, free: 110.1 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002505/1.428, allocations: 1.061 MB / 0.7947 GB, free: 109 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001059/1.429, allocations: 75.98 kB / 0.7948 GB, free: 109 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002958/1.432, allocations: 219.8 kB / 0.795 GB, free: 108.8 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006353/1.433, allocations: 270.7 kB / 0.7953 GB, free: 108.5 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002407/1.433, allocations: 108 kB / 0.7954 GB, free: 108.4 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.004746/1.438, allocations: 3.363 MB / 0.7986 GB, free: 105 MB / 494.1 MB Notification: Performance of sort global known variables: time 4.31e-07/1.438, allocations: 0 / 0.7986 GB, free: 105 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.006688/1.445, allocations: 1.884 MB / 0.8005 GB, free: 103.2 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.01343/1.458, allocations: 10.23 MB / 0.8105 GB, free: 92.82 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02626/1.485, allocations: 13.11 MB / 0.8233 GB, free: 79.67 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 8.236e-06/1.485, allocations: 4 kB / 0.8233 GB, free: 79.67 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005342/1.49, allocations: 3.555 MB / 0.8268 GB, free: 76.04 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007206/1.497, allocations: 1.308 MB / 0.828 GB, free: 74.78 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2841/1.781, allocations: 80.49 MB / 0.9066 GB, free: 165.7 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009001/1.79, allocations: 7.323 MB / 0.9138 GB, free: 164.8 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.006276/1.797, allocations: 2.153 MB / 0.9159 GB, free: 164.7 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005516/1.802, allocations: 4.335 MB / 0.9201 GB, free: 161.9 MB / 0.4982 GB Notification: Performance of SimCode: time 8.81e-07/1.802, allocations: 0 / 0.9201 GB, free: 161.9 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1888/1.991, allocations: 149.7 MB / 1.066 GB, free: 31.64 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/14.21, allocations: 8.203 kB / 1.066 GB, free: 31.63 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 & 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.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