Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001575/0.001575, allocations: 110 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00172/0.00172, allocations: 213.6 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.466/1.466, allocations: 230.5 MB / 257.4 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] 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.SMPM_Mains,fileNamePrefix="Modelica_trunk_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_trunk_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.002023/0.002023, allocations: 63.91 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2675/0.2695, allocations: 53.42 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.04652/0.316, allocations: 38.12 MB / 469.4 MB, free: 424 kB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02598/0.342, allocations: 10.34 MB / 479.7 MB, free: 6.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008218/0.3502, allocations: 334.2 kB / 480 MB, free: 5.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02365/0.3739, allocations: 9.261 MB / 489.3 MB, free: 12.43 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01614/0.39, allocations: 4.094 MB / 493.4 MB, free: 8.312 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009489/0.3995, allocations: 2.496 MB / 495.9 MB, free: 5.824 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02503/0.4245, allocations: 14.34 MB / 0.4983 GB, free: 7.445 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03925/0.4638, allocations: 17.13 MB / 0.515 GB, free: 6.16 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01493/0.4787, allocations: 7.363 MB / 0.5222 GB, free: 14.78 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01613/0.4948, allocations: 8.16 MB / 0.5301 GB, free: 6.59 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.006678/0.5015, allocations: 2.027 MB / 0.5321 GB, free: 4.562 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009841/0.5114, allocations: 2.46 MB / 0.5345 GB, free: 2.102 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.2954/0.8068, allocations: 4.043 MB / 0.5385 GB, free: 32.37 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0217/0.8285, allocations: 7.826 MB / 0.5461 GB, free: 31.89 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04053/0.869, allocations: 27.06 MB / 0.5725 GB, free: 24.51 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.598e-06/0.869, allocations: 3 kB / 0.5726 GB, free: 24.51 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.435e-06/0.869, allocations: 0 / 0.5726 GB, free: 24.51 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.0009861/0.87, allocations: 0 / 0.5726 GB, free: 24.51 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.0605/0.9305, allocations: 16.1 MB / 0.5883 GB, free: 14.29 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.756e-05/0.9306, allocations: 10.59 kB / 0.5883 GB, free: 14.29 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009773/0.9403, allocations: 1.923 MB / 0.5902 GB, free: 13.05 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0369/0.9772, allocations: 6.435 MB / 0.5965 GB, free: 10.09 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02423/1.001, allocations: 8.668 MB / 0.6049 GB, free: 3.496 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009963/1.002, allocations: 0.9048 MB / 0.6058 GB, free: 2.602 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006753/1.009, allocations: 1.193 MB / 0.607 GB, free: 1.422 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.06348/1.073, allocations: 18.81 MB / 0.6253 GB, free: 14.54 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008185/1.074, allocations: 18.72 kB / 0.6254 GB, free: 14.53 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.006173/1.08, allocations: 0.495 MB / 0.6258 GB, free: 14.04 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0009374/1.081, allocations: 0.6535 MB / 0.6265 GB, free: 13.39 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.04894/1.13, allocations: 17.04 MB / 0.6431 GB, free: 12.34 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1465/1.276, allocations: 60.41 MB / 0.7021 GB, free: 15.74 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.02495/1.301, allocations: 10.97 MB / 0.7128 GB, free: 5.871 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.008545/1.31, allocations: 3.67 MB / 0.7164 GB, free: 2.195 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02772/1.337, allocations: 10.01 MB / 0.7262 GB, free: 8.305 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.338e-05/1.337, allocations: 77.8 kB / 0.7263 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=402): time 6.823e-06/1.337, allocations: 0 / 0.7263 GB, free: 8.219 MB / 0.5606 GB Notification: Performance of matching and sorting (n=412): time 0.05655/1.394, allocations: 19.73 MB / 0.7455 GB, free: 4.43 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.604e-05/1.394, allocations: 124.3 kB / 0.7456 GB, free: 4.285 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2862/1.68, allocations: 5.194 MB / 0.7507 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 0.001048/1.681, allocations: 91.36 kB / 0.7508 GB, free: 201.1 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 0.005066/1.686, allocations: 5.548 MB / 0.7562 GB, free: 199.4 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 0.001874/1.688, allocations: 1.495 MB / 0.7577 GB, free: 198.4 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002145/1.69, allocations: 1.265 MB / 0.7589 GB, free: 198.3 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 5.281e-05/1.69, allocations: 304.8 kB / 0.7592 GB, free: 198 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003996/1.694, allocations: 2.854 MB / 0.762 GB, free: 198 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006128/1.701, allocations: 5.351 MB / 0.7672 GB, free: 194.4 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01076/1.711, allocations: 8.751 MB / 0.7758 GB, free: 188.2 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001534/1.712, allocations: 22.97 kB / 0.7758 GB, free: 188.2 MB / 0.5762 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.01914/1.731, allocations: 9.631 MB / 0.7852 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001624/1.731, allocations: 39.16 kB / 0.7852 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001906/1.731, allocations: 82.25 kB / 0.7853 GB, free: 184.3 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003067/1.734, allocations: 1.124 MB / 0.7864 GB, free: 184 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005673/1.74, allocations: 1.456 MB / 0.7878 GB, free: 183.8 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01524/1.755, allocations: 13.06 MB / 0.8006 GB, free: 174.8 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007689/1.763, allocations: 354.8 kB / 0.8009 GB, free: 174.7 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002147/1.765, allocations: 326.7 kB / 0.8012 GB, free: 174.7 MB / 0.5762 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.01115/1.776, allocations: 4.236 MB / 0.8054 GB, free: 172.3 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002439/1.778, allocations: 0.5624 MB / 0.8059 GB, free: 171.8 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01639/1.795, allocations: 6.913 MB / 0.8127 GB, free: 165.9 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.007543/1.802, allocations: 4.214 MB / 0.8168 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.978e-05/1.802, allocations: 16 kB / 0.8168 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.791e-05/1.802, allocations: 26.69 kB / 0.8168 GB, free: 162.3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04208/1.845, allocations: 16.85 MB / 0.8333 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.132e-05/1.845, allocations: 4 kB / 0.8333 GB, free: 147.3 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003322/1.848, allocations: 0.6909 MB / 0.8339 GB, free: 146.6 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003392/1.851, allocations: 1.18 MB / 0.8351 GB, free: 145.4 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009388/1.852, allocations: 108 kB / 0.8352 GB, free: 145.3 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01673/1.869, allocations: 16.78 MB / 0.8516 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/1.869, allocations: 8 kB / 0.8516 GB, free: 127.9 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01687/1.886, allocations: 10.13 MB / 0.8615 GB, free: 117.6 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00382/1.89, allocations: 1.086 MB / 0.8625 GB, free: 116.5 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002071/1.892, allocations: 91.98 kB / 0.8626 GB, free: 116.4 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003886/1.896, allocations: 203.4 kB / 0.8628 GB, free: 116.2 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00118/1.897, allocations: 327.2 kB / 0.8631 GB, free: 115.9 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006916/1.898, allocations: 130.6 kB / 0.8633 GB, free: 115.8 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.00696/1.904, allocations: 3.485 MB / 0.8667 GB, free: 112.3 MB / 0.5762 GB Notification: Performance of sort global known variables: time 2.61e-07/1.904, allocations: 0 / 0.8667 GB, free: 112.3 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.009444/1.914, allocations: 1.957 MB / 0.8686 GB, free: 110.4 MB / 0.5762 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.01789/1.932, allocations: 10.88 MB / 0.8792 GB, free: 99.35 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01259/1.944, allocations: 7.348 MB / 0.8864 GB, free: 91.93 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.309e-05/1.944, allocations: 0 / 0.8864 GB, free: 91.93 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.006698/1.951, allocations: 3.876 MB / 0.8902 GB, free: 87.99 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01003/1.961, allocations: 1.457 MB / 0.8916 GB, free: 86.59 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1324/2.094, allocations: 66.79 MB / 0.9568 GB, free: 16.55 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0155/2.109, allocations: 7.381 MB / 0.964 GB, free: 9.133 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 0.007053/2.116, allocations: 2.001 MB / 0.966 GB, free: 7.125 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.008061/2.124, allocations: 4.42 MB / 0.9703 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of SimCode: time 1.252e-06/2.124, allocations: 0 / 0.9703 GB, free: 2.703 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.466/2.59, allocations: 164.9 MB / 1.131 GB, free: 73.22 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 24.66/27.25, allocations: 3.938 kB / 1.131 GB, free: 73.22 MB / 0.5762 GB " [Timeout remaining time 633] (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains_fmu --startTime=0 --stopTime=1 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Mains.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 36.474761388031766]