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.001658/0.001659, allocations: 117.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002059/0.002059, allocations: 200.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 227.4 MB / 246.9 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001263/0.001263, allocations: 63.89 kB / 358.3 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2446/0.2459, allocations: 50.55 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_CurrentSource): time 0.03921/0.2851, allocations: 40.08 MB / 448.9 MB, free: 9.277 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02263/0.3078, allocations: 10.65 MB / 459.5 MB, free: 14.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008329/0.3162, allocations: 307 kB / 459.8 MB, free: 14.29 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.01989/0.3361, allocations: 8.59 MB / 468.4 MB, free: 5.68 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01188/0.348, allocations: 3.5 MB / 471.9 MB, free: 2.164 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007718/0.3558, allocations: 2.356 MB / 474.3 MB, free: 15.81 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.01776/0.3736, allocations: 12.96 MB / 487.2 MB, free: 2.805 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.04108/0.4147, allocations: 25.31 MB / 0.5005 GB, free: 9.344 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0108/0.4255, allocations: 6.83 MB / 0.5072 GB, free: 2.496 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01206/0.4376, allocations: 7.837 MB / 0.5149 GB, free: 10.63 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005619/0.4433, allocations: 1.953 MB / 0.5168 GB, free: 8.676 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00799/0.4513, allocations: 2.359 MB / 0.5191 GB, free: 6.32 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007427/0.4588, allocations: 3.959 MB / 0.5229 GB, free: 2.352 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01642/0.4752, allocations: 7.552 MB / 0.5303 GB, free: 10.77 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4537/0.929, allocations: 25.97 MB / 0.5557 GB, free: 55.56 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.366e-06/0.929, allocations: 2.516 kB / 0.5557 GB, free: 55.56 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.929, allocations: 0 / 0.5557 GB, free: 55.56 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0009028/0.9299, allocations: 0 / 0.5557 GB, free: 55.56 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.04656/0.9765, allocations: 15.33 MB / 0.5706 GB, free: 48.72 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.874e-05/0.9766, allocations: 10.62 kB / 0.5707 GB, free: 48.72 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.006449/0.983, allocations: 1.713 MB / 0.5723 GB, free: 48.29 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03402/1.017, allocations: 6.217 MB / 0.5784 GB, free: 45.83 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01964/1.037, allocations: 8.091 MB / 0.5863 GB, free: 41.6 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008509/1.038, allocations: 0.9029 MB / 0.5872 GB, free: 41.19 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005379/1.043, allocations: 1.2 MB / 0.5884 GB, free: 40.79 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04981/1.093, allocations: 18.66 MB / 0.6066 GB, free: 23.5 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004777/1.093, allocations: 19.89 kB / 0.6066 GB, free: 23.48 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004636/1.098, allocations: 0.4973 MB / 0.6071 GB, free: 23 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005384/1.099, allocations: 0.6382 MB / 0.6077 GB, free: 22.36 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03475/1.133, allocations: 16.77 MB / 0.6241 GB, free: 5.582 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1141/1.248, allocations: 58.97 MB / 0.6817 GB, free: 10.14 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02879/1.276, allocations: 33.21 MB / 0.7141 GB, free: 5.027 MB / 0.5451 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00734/1.284, allocations: 3.74 MB / 0.7178 GB, free: 1.273 MB / 0.5451 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02201/1.306, allocations: 8.843 MB / 0.7264 GB, free: 8.457 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.422e-05/1.306, allocations: 81.3 kB / 0.7265 GB, free: 8.367 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=349): time 5.511e-06/1.306, allocations: 0 / 0.7265 GB, free: 8.367 MB / 0.5607 GB Notification: Performance of matching and sorting (n=389): time 0.04318/1.349, allocations: 17.71 MB / 0.7438 GB, free: 6.57 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.928e-05/1.349, allocations: 98.22 kB / 0.7439 GB, free: 6.465 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0106/1.36, allocations: 5.038 MB / 0.7488 GB, free: 1.434 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0007693/1.361, allocations: 89.7 kB / 0.7489 GB, free: 1.34 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2838/1.644, allocations: 5.639 MB / 0.7544 GB, free: 176.9 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001774/1.646, allocations: 1.427 MB / 0.7558 GB, free: 176 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003113/1.649, allocations: 1.32 MB / 0.7571 GB, free: 175.9 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.509e-05/1.65, allocations: 304.6 kB / 0.7573 GB, free: 175.6 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004937/1.654, allocations: 2.907 MB / 0.7602 GB, free: 175.5 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006808/1.661, allocations: 5.872 MB / 0.7659 GB, free: 171.9 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01084/1.672, allocations: 9.447 MB / 0.7751 GB, free: 165.6 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001638/1.672, allocations: 26.91 kB / 0.7752 GB, free: 165.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=865) (initialization): time 0.01886/1.691, allocations: 9.882 MB / 0.7848 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001192/1.691, allocations: 46.47 kB / 0.7849 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002103/1.692, allocations: 101.2 kB / 0.785 GB, free: 162.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002509/1.694, allocations: 0.9322 MB / 0.7859 GB, free: 161.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005873/1.7, allocations: 1.583 MB / 0.7874 GB, free: 161.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01081/1.711, allocations: 10.19 MB / 0.7974 GB, free: 153.1 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006425/1.717, allocations: 411.6 kB / 0.7978 GB, free: 152.7 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001506/1.719, allocations: 351.7 kB / 0.7981 GB, free: 152.4 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.008309/1.727, allocations: 4.259 MB / 0.8023 GB, free: 148.9 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001559/1.729, allocations: 0.5355 MB / 0.8028 GB, free: 148.3 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/1.74, allocations: 6.488 MB / 0.8091 GB, free: 142.9 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.471e-05/1.74, allocations: 40 kB / 0.8092 GB, free: 142.8 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.69e-05/1.74, allocations: 8 kB / 0.8092 GB, free: 142.8 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.876e-05/1.74, allocations: 20.62 kB / 0.8092 GB, free: 142.8 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03126/1.771, allocations: 15.71 MB / 0.8245 GB, free: 127.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-05/1.772, allocations: 0 / 0.8245 GB, free: 127.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00331/1.775, allocations: 0.7498 MB / 0.8252 GB, free: 126.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002117/1.777, allocations: 0.7875 MB / 0.826 GB, free: 126.1 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006084/1.778, allocations: 91.95 kB / 0.8261 GB, free: 126 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008831/1.786, allocations: 9.358 MB / 0.8352 GB, free: 116.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.559e-06/1.787, allocations: 4 kB / 0.8352 GB, free: 116.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01479/1.801, allocations: 9.525 MB / 0.8445 GB, free: 106.6 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003503/1.805, allocations: 1.083 MB / 0.8456 GB, free: 105.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001799/1.807, allocations: 75.95 kB / 0.8457 GB, free: 105.5 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003675/1.81, allocations: 219.7 kB / 0.8459 GB, free: 105.3 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009868/1.811, allocations: 262.5 kB / 0.8461 GB, free: 105 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006472/1.812, allocations: 118.5 kB / 0.8463 GB, free: 104.9 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006727/1.819, allocations: 3.359 MB / 0.8495 GB, free: 101.5 MB / 0.5763 GB Notification: Performance of sort global known variables: time 8.31e-07/1.819, allocations: 4 kB / 0.8495 GB, free: 101.5 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009335/1.828, allocations: 1.883 MB / 0.8514 GB, free: 99.66 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.01716/1.845, allocations: 10.24 MB / 0.8614 GB, free: 89.37 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01364/1.859, allocations: 7.684 MB / 0.8689 GB, free: 81.92 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/1.859, allocations: 1.875 kB / 0.8689 GB, free: 81.92 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006391/1.866, allocations: 3.56 MB / 0.8724 GB, free: 78.36 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009172/1.875, allocations: 1.302 MB / 0.8736 GB, free: 77.1 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1059/1.981, allocations: 65.22 MB / 0.9373 GB, free: 8.441 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.009364/1.99, allocations: 7.332 MB / 0.9445 GB, free: 1.074 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006235/1.996, allocations: 2.149 MB / 0.9466 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008141/2.005, allocations: 4.338 MB / 0.9508 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of SimCode: time 1.472e-06/2.005, allocations: 0 / 0.9508 GB, free: 10.58 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4064/2.411, allocations: 147.4 MB / 1.095 GB, free: 143 MB / 0.6076 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.61/24.02, allocations: 15.8 kB / 1.095 GB, free: 143 MB / 0.6076 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