Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00153/0.00153, allocations: 115.9 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001983/0.001983, allocations: 209.4 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.455/1.455, allocations: 230.6 MB / 257.5 MB, free: 8.027 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001512/0.001512, allocations: 43.92 kB / 377.8 MB, free: 3.098 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.2555, allocations: 53.37 MB / 431.2 MB, free: 6.824 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.05005/0.3056, allocations: 42.08 MB / 473.3 MB, free: 12.57 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02586/0.3314, allocations: 11.26 MB / 484.5 MB, free: 1.273 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008829/0.3403, allocations: 377.9 kB / 484.9 MB, free: 0.9023 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02274/0.363, allocations: 8.929 MB / 493.8 MB, free: 7.945 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0147/0.3777, allocations: 3.737 MB / 497.6 MB, free: 4.195 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009058/0.3868, allocations: 2.507 MB / 0.4884 GB, free: 1.691 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02073/0.4075, allocations: 13.51 MB / 0.5015 GB, free: 4.137 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03764/0.4451, allocations: 17.63 MB / 0.5188 GB, free: 2.355 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01393/0.4591, allocations: 7.161 MB / 0.5258 GB, free: 11.17 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01612/0.4752, allocations: 8.117 MB / 0.5337 GB, free: 3.027 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006765/0.4819, allocations: 1.992 MB / 0.5356 GB, free: 1.035 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.4299/0.9118, allocations: 2.42 MB / 0.538 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007117/0.9189, allocations: 4.051 MB / 0.5419 GB, free: 30.75 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01601/0.9349, allocations: 7.785 MB / 0.5496 GB, free: 29.81 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03217/0.9671, allocations: 26.55 MB / 0.5755 GB, free: 21.76 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.272e-06/0.9671, allocations: 0 / 0.5755 GB, free: 21.76 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.9671, allocations: 0 / 0.5755 GB, free: 21.76 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0008294/0.9679, allocations: 1.438 kB / 0.5755 GB, free: 21.76 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3414 * Number of variables: 3414 Notification: Performance of Generate backend data structure: time 0.04223/1.01, allocations: 15.7 MB / 0.5908 GB, free: 11.74 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/1.01, allocations: 7.438 kB / 0.5908 GB, free: 11.74 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005869/1.016, allocations: 1.754 MB / 0.5925 GB, free: 10.49 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03224/1.048, allocations: 6.201 MB / 0.5986 GB, free: 7.629 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02007/1.068, allocations: 8.338 MB / 0.6067 GB, free: 400 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009746/1.069, allocations: 0.9292 MB / 0.6076 GB, free: 15.46 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.007531/1.077, allocations: 1.224 MB / 0.6088 GB, free: 14.25 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0602/1.137, allocations: 19.05 MB / 0.6274 GB, free: 11.14 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007121/1.138, allocations: 27.55 kB / 0.6275 GB, free: 11.11 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004853/1.143, allocations: 0.5062 MB / 0.628 GB, free: 10.62 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007915/1.143, allocations: 0.6504 MB / 0.6286 GB, free: 9.965 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04378/1.187, allocations: 17.07 MB / 0.6453 GB, free: 8.891 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1369/1.324, allocations: 58.77 MB / 0.7027 GB, free: 13.84 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02099/1.345, allocations: 10.49 MB / 0.7129 GB, free: 5.062 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.007615/1.353, allocations: 3.481 MB / 0.7163 GB, free: 1.57 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02268/1.375, allocations: 8.786 MB / 0.7249 GB, free: 8.902 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.375e-05/1.376, allocations: 73.39 kB / 0.725 GB, free: 8.82 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=361): time 5.801e-06/1.376, allocations: 0 / 0.725 GB, free: 8.82 MB / 0.5607 GB Notification: Performance of matching and sorting (n=403): time 0.04395/1.419, allocations: 17.57 MB / 0.7421 GB, free: 7.301 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.102e-05/1.42, allocations: 94.14 kB / 0.7422 GB, free: 7.199 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01327/1.433, allocations: 5.266 MB / 0.7473 GB, free: 1.953 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009235/1.434, allocations: 93.7 kB / 0.7474 GB, free: 1.855 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.2444/1.678, allocations: 5.808 MB / 0.7531 GB, free: 201.5 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001652/1.68, allocations: 1.47 MB / 0.7545 GB, free: 200.6 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002796/1.683, allocations: 1.367 MB / 0.7559 GB, free: 200.5 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 5.32e-05/1.683, allocations: 309.1 kB / 0.7562 GB, free: 200.2 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004756/1.687, allocations: 2.976 MB / 0.7591 GB, free: 200.2 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006408/1.694, allocations: 6.018 MB / 0.765 GB, free: 196.4 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01109/1.705, allocations: 9.684 MB / 0.7744 GB, free: 189.4 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001035/1.705, allocations: 28.81 kB / 0.7744 GB, free: 189.4 MB / 0.5763 GB Notification: Performance of matching and sorting (n=890) (initialization): time 0.01836/1.723, allocations: 10.11 MB / 0.7843 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001743/1.724, allocations: 51.36 kB / 0.7844 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002353/1.724, allocations: 104.9 kB / 0.7845 GB, free: 185.3 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/1.726, allocations: 0.941 MB / 0.7854 GB, free: 185.1 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007253/1.734, allocations: 1.628 MB / 0.787 GB, free: 184.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01277/1.746, allocations: 9.909 MB / 0.7967 GB, free: 178.2 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006229/1.753, allocations: 412.5 kB / 0.797 GB, free: 178.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001521/1.754, allocations: 373 kB / 0.7974 GB, free: 178 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 466 * 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 (841): * Single equations (assignments): 836 * 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.009402/1.764, allocations: 4.301 MB / 0.8016 GB, free: 175.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001722/1.765, allocations: 0.5741 MB / 0.8022 GB, free: 175.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01302/1.778, allocations: 6.641 MB / 0.8086 GB, free: 169.5 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.025e-05/1.778, allocations: 40 kB / 0.8087 GB, free: 169.5 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.971e-05/1.778, allocations: 11.89 kB / 0.8087 GB, free: 169.5 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.433e-05/1.778, allocations: 23.39 kB / 0.8087 GB, free: 169.5 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03569/1.814, allocations: 16.28 MB / 0.8246 GB, free: 155.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.411e-05/1.814, allocations: 4 kB / 0.8246 GB, free: 155.9 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003378/1.818, allocations: 0.7824 MB / 0.8254 GB, free: 155.2 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002173/1.82, allocations: 0.7885 MB / 0.8262 GB, free: 154.4 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006649/1.82, allocations: 91.97 kB / 0.8262 GB, free: 154.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009238/1.83, allocations: 9.037 MB / 0.8351 GB, free: 144.9 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.83, allocations: 8.094 kB / 0.8351 GB, free: 144.9 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01597/1.846, allocations: 9.819 MB / 0.8447 GB, free: 134.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003493/1.849, allocations: 1.074 MB / 0.8457 GB, free: 133.9 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00173/1.851, allocations: 79.94 kB / 0.8458 GB, free: 133.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00366/1.855, allocations: 223.8 kB / 0.846 GB, free: 133.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009835/1.855, allocations: 294.6 kB / 0.8463 GB, free: 133.3 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006514/1.856, allocations: 124 kB / 0.8464 GB, free: 133.2 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.0073/1.863, allocations: 3.506 MB / 0.8498 GB, free: 129.7 MB / 0.5763 GB Notification: Performance of sort global known variables: time 2.8e-07/1.863, allocations: 0 / 0.8498 GB, free: 129.7 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.009031/1.872, allocations: 1.94 MB / 0.8517 GB, free: 127.7 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi,smpmQS.inertiaRotor.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 (384): * Single equations (assignments): 379 * 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.01657/1.889, allocations: 10.55 MB / 0.862 GB, free: 117.1 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01219/1.901, allocations: 7.393 MB / 0.8692 GB, free: 109.6 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 9.207e-06/1.901, allocations: 0 / 0.8692 GB, free: 109.6 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006002/1.907, allocations: 3.247 MB / 0.8724 GB, free: 106.4 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009689/1.917, allocations: 1.411 MB / 0.8738 GB, free: 105 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1241/2.041, allocations: 67.54 MB / 0.9397 GB, free: 33.49 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01572/2.057, allocations: 7.432 MB / 0.947 GB, free: 26.02 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.007759/2.065, allocations: 2.194 MB / 0.9491 GB, free: 23.81 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00824/2.073, allocations: 4.522 MB / 0.9536 GB, free: 19.29 MB / 0.5763 GB Notification: Performance of SimCode: time 2.836e-06/2.073, allocations: 0 / 0.9536 GB, free: 19.29 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4824/2.555, allocations: 161.1 MB / 1.111 GB, free: 93.58 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 25.59/28.15, allocations: 0 / 1.111 GB, free: 93.58 MB / 0.5763 GB " [Timeout remaining time 632] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_CurrentSource.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/QuasiStatic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 652] Reference file matches [Calling sys.exit(0), Time elapsed: 45.08253796608187]