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_Mains.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.001766/0.001766, allocations: 115.8 kB / 20.43 MB, free: 1.457 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.002205/0.002205, allocations: 213.3 kB / 23.75 MB, free: 4.668 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.452/1.452, allocations: 230.6 MB / 257.5 MB, free: 7.992 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_Mains,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001808/0.001808, allocations: 55.91 kB / 377.8 MB, free: 3.062 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2951/0.2969, allocations: 53.35 MB / 431.2 MB, free: 6.832 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04819/0.3451, allocations: 38.14 MB / 469.3 MB, free: 0.5273 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02675/0.3718, allocations: 10.34 MB / 479.7 MB, free: 6.152 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008798/0.3806, allocations: 330.2 kB / 480 MB, free: 5.828 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02336/0.404, allocations: 9.279 MB / 489.3 MB, free: 12.53 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01438/0.4184, allocations: 4.104 MB / 493.4 MB, free: 8.406 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008684/0.427, allocations: 2.493 MB / 495.9 MB, free: 5.922 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02308/0.4501, allocations: 14.34 MB / 0.4982 GB, free: 7.539 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03719/0.4873, allocations: 17.12 MB / 0.515 GB, free: 6.262 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01329/0.5006, allocations: 7.387 MB / 0.5222 GB, free: 14.86 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01459/0.5152, allocations: 8.156 MB / 0.5301 GB, free: 6.672 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006585/0.5218, allocations: 2.027 MB / 0.5321 GB, free: 4.645 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008459/0.5302, allocations: 2.457 MB / 0.5345 GB, free: 2.188 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.4465/0.9767, allocations: 4.043 MB / 0.5385 GB, free: 32.61 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01647/0.9932, allocations: 7.824 MB / 0.5461 GB, free: 32.13 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.03404/1.027, allocations: 27.06 MB / 0.5725 GB, free: 24.68 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.592e-06/1.027, allocations: 2.594 kB / 0.5725 GB, free: 24.68 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.704e-06/1.027, allocations: 0 / 0.5725 GB, free: 24.68 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.00084/1.028, allocations: 0 / 0.5725 GB, free: 24.68 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: 3330 * Number of variables: 3330 Notification: Performance of Generate backend data structure: time 0.04897/1.077, allocations: 16.11 MB / 0.5883 GB, free: 14.46 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.441e-05/1.077, allocations: 11.38 kB / 0.5883 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.007583/1.085, allocations: 1.929 MB / 0.5901 GB, free: 13.21 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03606/1.121, allocations: 6.43 MB / 0.5964 GB, free: 10.26 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02145/1.142, allocations: 8.676 MB / 0.6049 GB, free: 3.656 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008397/1.143, allocations: 0.903 MB / 0.6058 GB, free: 2.762 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004819/1.148, allocations: 1.192 MB / 0.6069 GB, free: 1.582 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05563/1.203, allocations: 18.81 MB / 0.6253 GB, free: 14.7 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0006264/1.204, allocations: 19.91 kB / 0.6253 GB, free: 14.68 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004675/1.209, allocations: 498.9 kB / 0.6258 GB, free: 14.21 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008293/1.21, allocations: 0.6498 MB / 0.6264 GB, free: 13.55 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04241/1.252, allocations: 17.05 MB / 0.6431 GB, free: 12.5 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1336/1.386, allocations: 60.41 MB / 0.7021 GB, free: 15.89 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02509/1.411, allocations: 10.96 MB / 0.7128 GB, free: 6.047 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00769/1.418, allocations: 3.678 MB / 0.7164 GB, free: 2.367 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02413/1.442, allocations: 10.02 MB / 0.7262 GB, free: 8.473 MB / 0.5607 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.143e-05/1.443, allocations: 73.8 kB / 0.7262 GB, free: 8.391 MB / 0.5607 GB Notification: Performance of pre-optimization done (n=402): time 6.382e-06/1.443, allocations: 0 / 0.7262 GB, free: 8.391 MB / 0.5607 GB Notification: Performance of matching and sorting (n=412): time 0.05323/1.496, allocations: 19.73 MB / 0.7455 GB, free: 4.594 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/1.496, allocations: 120.4 kB / 0.7456 GB, free: 4.453 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2683/1.764, allocations: 5.189 MB / 0.7507 GB, free: 201.4 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.001024/1.765, allocations: 93.02 kB / 0.7508 GB, free: 201.4 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.004624/1.77, allocations: 5.547 MB / 0.7562 GB, free: 199.6 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.001935/1.772, allocations: 1.5 MB / 0.7577 GB, free: 198.7 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00226/1.774, allocations: 1.258 MB / 0.7589 GB, free: 198.6 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 4.643e-05/1.774, allocations: 308.3 kB / 0.7592 GB, free: 198.3 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003909/1.778, allocations: 2.856 MB / 0.762 GB, free: 198.3 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005306/1.783, allocations: 5.352 MB / 0.7672 GB, free: 194.8 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009513/1.793, allocations: 8.753 MB / 0.7757 GB, free: 188.6 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.409e-05/1.793, allocations: 23.25 kB / 0.7758 GB, free: 188.6 MB / 0.5763 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01497/1.808, allocations: 9.626 MB / 0.7852 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 6.734e-05/1.808, allocations: 39.31 kB / 0.7852 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001257/1.808, allocations: 86.62 kB / 0.7853 GB, free: 184.7 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002617/1.811, allocations: 1.123 MB / 0.7864 GB, free: 184.4 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004874/1.816, allocations: 1.448 MB / 0.7878 GB, free: 184.3 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01392/1.83, allocations: 13.07 MB / 0.8006 GB, free: 175.3 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005995/1.835, allocations: 357.2 kB / 0.8009 GB, free: 175.1 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001396/1.837, allocations: 325.1 kB / 0.8012 GB, free: 175.1 MB / 0.5763 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 373 * 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 (764): * Single equations (assignments): 758 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 4 systems {(1,1,100.0%), (10,46,50.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.009467/1.846, allocations: 4.237 MB / 0.8053 GB, free: 172.7 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001869/1.848, allocations: 0.5623 MB / 0.8059 GB, free: 172.1 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01264/1.861, allocations: 6.913 MB / 0.8126 GB, free: 166.3 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006275/1.867, allocations: 4.21 MB / 0.8168 GB, free: 162.6 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.704e-05/1.867, allocations: 20 kB / 0.8168 GB, free: 162.6 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.378e-05/1.867, allocations: 25.58 kB / 0.8168 GB, free: 162.6 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03224/1.899, allocations: 16.85 MB / 0.8333 GB, free: 147.6 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.99e-05/1.9, allocations: 4 kB / 0.8333 GB, free: 147.6 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002814/1.902, allocations: 0.6949 MB / 0.8339 GB, free: 146.9 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002847/1.905, allocations: 1.172 MB / 0.8351 GB, free: 145.7 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004394/1.906, allocations: 112 kB / 0.8352 GB, free: 145.6 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01479/1.92, allocations: 16.76 MB / 0.8516 GB, free: 128.2 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.793e-06/1.92, allocations: 17.23 kB / 0.8516 GB, free: 128.2 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01389/1.934, allocations: 10.13 MB / 0.8615 GB, free: 117.9 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003536/1.938, allocations: 1.09 MB / 0.8625 GB, free: 116.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001486/1.939, allocations: 84.75 kB / 0.8626 GB, free: 116.8 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003169/1.942, allocations: 199.8 kB / 0.8628 GB, free: 116.6 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008791/1.943, allocations: 331.1 kB / 0.8631 GB, free: 116.2 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004194/1.944, allocations: 124 kB / 0.8632 GB, free: 116.1 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 0.006135/1.95, allocations: 3.489 MB / 0.8666 GB, free: 112.6 MB / 0.5763 GB Notification: Performance of sort global known variables: time 1.9e-07/1.95, allocations: 0 / 0.8666 GB, free: 112.6 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.008791/1.959, allocations: 1.961 MB / 0.8686 GB, free: 110.7 MB / 0.5763 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 21 * Number of states: 10 (smpm.inertiaRotor.w,smpm.stator.zeroInductor.i0,smpm.stator.core.Phi.re,smpm.stator.core.Phi.im,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,smpmQS.inertiaRotor.w,smpmQS.rotorCage.port_p.reference.gamma,loadInertiaMQS.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 (353): * Single equations (assignments): 346 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,1,100.0%), (1,5,100.0%), (1,8,100.0%), (2,13,100.0%), (1,1,100.0%), (10,46,52.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01516/1.974, allocations: 10.88 MB / 0.8792 GB, free: 99.66 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.01147/1.985, allocations: 7.345 MB / 0.8864 GB, free: 92.26 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/1.985, allocations: 0 / 0.8864 GB, free: 92.26 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.006146/1.991, allocations: 3.865 MB / 0.8901 GB, free: 88.32 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007888/1.999, allocations: 1.461 MB / 0.8916 GB, free: 86.91 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1128/2.112, allocations: 66.8 MB / 0.9568 GB, free: 16.87 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01222/2.124, allocations: 7.385 MB / 0.964 GB, free: 9.445 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 0.006238/2.131, allocations: 1.998 MB / 0.966 GB, free: 7.441 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.007135/2.138, allocations: 4.432 MB / 0.9703 GB, free: 3.008 MB / 0.5763 GB Notification: Performance of SimCode: time 1.723e-06/2.138, allocations: 0 / 0.9703 GB, free: 3.008 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4612/2.599, allocations: 164.9 MB / 1.131 GB, free: 73.68 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 26.19/28.79, allocations: 14.44 kB / 1.131 GB, free: 73.67 MB / 0.5763 GB " [Timeout remaining time 631] (rm -f Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_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_Mains/SMPM_Mains.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 38.870294607942924]