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.0008688/0.0008688, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008077/0.0008077, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8566/0.8566, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 2.154e-06/2.154e-06, allocations: 3.984 kB / 324.6 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.13e-05/1.346e-05, allocations: 6.781 kB / 324.6 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Mains): time 0.02311/0.02312, allocations: 32.59 MB / 357.2 MB, free: 15.13 MB / 330.7 MB Notification: Performance of NFInst.instExpressions: time 0.02131/0.04443, allocations: 9.973 MB / 367.1 MB, free: 5.125 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.008281/0.05271, allocations: 330.2 kB / 367.4 MB, free: 4.801 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.01469/0.0674, allocations: 9.017 MB / 376.5 MB, free: 11.75 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01414/0.08154, allocations: 4.123 MB / 380.6 MB, free: 7.609 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006263/0.0878, allocations: 2.433 MB / 383 MB, free: 5.184 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.01684/0.1046, allocations: 14.85 MB / 397.9 MB, free: 6.281 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02404/0.1287, allocations: 16.93 MB / 414.8 MB, free: 5.199 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01757/0.1463, allocations: 10.84 MB / 425.6 MB, free: 10.34 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01117/0.1574, allocations: 6.809 MB / 432.4 MB, free: 3.52 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.005124/0.1626, allocations: 2.023 MB / 434.5 MB, free: 1.496 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006011/0.1686, allocations: 2.444 MB / 436.9 MB, free: 15.05 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.003513/0.1721, allocations: 4.126 MB / 441 MB, free: 10.91 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.01033/0.1824, allocations: 5.244 MB / 446.3 MB, free: 5.66 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.3694/0.5518, allocations: 27.33 MB / 473.6 MB, free: 48.76 MB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 6.673e-06/0.5518, allocations: 4.094 kB / 473.6 MB, free: 48.76 MB / 410.8 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5518, allocations: 2.406 kB / 473.6 MB, free: 48.76 MB / 410.8 MB Notification: Performance of Transformations before backend: time 0.0005162/0.5523, allocations: 0 / 473.6 MB, free: 48.76 MB / 410.8 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.03596/0.5883, allocations: 15.96 MB / 489.6 MB, free: 41.67 MB / 410.8 MB Notification: Performance of prepare preOptimizeDAE: time 5.884e-05/0.5883, allocations: 15.45 kB / 489.6 MB, free: 41.67 MB / 410.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004317/0.5927, allocations: 1.928 MB / 491.5 MB, free: 41.21 MB / 410.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01818/0.6108, allocations: 6.437 MB / 498 MB, free: 38.7 MB / 410.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01826/0.6291, allocations: 8.627 MB / 0.4947 GB, free: 33.32 MB / 410.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009254/0.63, allocations: 0.9035 MB / 0.4956 GB, free: 32.91 MB / 410.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.006517/0.6365, allocations: 1.192 MB / 0.4968 GB, free: 32.52 MB / 410.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03432/0.6709, allocations: 19.06 MB / 0.5154 GB, free: 13.41 MB / 410.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002922/0.6711, allocations: 23.89 kB / 0.5154 GB, free: 13.39 MB / 410.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001043/0.6722, allocations: 0.4913 MB / 0.5159 GB, free: 12.91 MB / 410.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004087/0.6726, allocations: 0.6572 MB / 0.5165 GB, free: 12.26 MB / 410.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03092/0.7035, allocations: 16.98 MB / 0.5331 GB, free: 11.27 MB / 426.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.09115/0.7947, allocations: 55.43 MB / 0.5872 GB, free: 3.703 MB / 474.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01279/0.8075, allocations: 10.84 MB / 0.5978 GB, free: 9.93 MB / 490.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004034/0.8115, allocations: 3.679 MB / 0.6014 GB, free: 6.246 MB / 490.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01312/0.8246, allocations: 9.026 MB / 0.6102 GB, free: 13.34 MB / 0.4949 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.156e-05/0.8247, allocations: 73.8 kB / 0.6103 GB, free: 13.26 MB / 0.4949 GB Notification: Performance of pre-optimization done (n=402): time 8.115e-06/0.8247, allocations: 0 / 0.6103 GB, free: 13.26 MB / 0.4949 GB Notification: Performance of matching and sorting (n=412): time 0.28/1.105, allocations: 19.71 MB / 0.6295 GB, free: 171.3 MB / 0.4949 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.955e-05/1.105, allocations: 123.8 kB / 0.6297 GB, free: 171.2 MB / 0.4949 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005759/1.11, allocations: 5.345 MB / 0.6349 GB, free: 170.6 MB / 0.4949 GB Notification: Performance of collectPreVariables (initialization): time 0.0005429/1.111, allocations: 94.42 kB / 0.635 GB, free: 170.6 MB / 0.4949 GB Notification: Performance of collectInitialEqns (initialization): time 0.001873/1.113, allocations: 5.522 MB / 0.6404 GB, free: 167.2 MB / 0.4949 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006656/1.114, allocations: 1.481 MB / 0.6418 GB, free: 166 MB / 0.4949 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001229/1.115, allocations: 1.251 MB / 0.643 GB, free: 165.4 MB / 0.4949 GB Notification: Performance of setup shared object (initialization): time 3.17e-05/1.115, allocations: 305.1 kB / 0.6433 GB, free: 165.1 MB / 0.4949 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002571/1.117, allocations: 2.861 MB / 0.6461 GB, free: 164 MB / 0.4949 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003184/1.121, allocations: 5.401 MB / 0.6514 GB, free: 159.7 MB / 0.4949 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006172/1.127, allocations: 8.753 MB / 0.6599 GB, free: 153.6 MB / 0.4949 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.764e-05/1.127, allocations: 27.25 kB / 0.66 GB, free: 153.6 MB / 0.4949 GB Notification: Performance of matching and sorting (n=828) (initialization): time 0.009237/1.136, allocations: 9.622 MB / 0.6694 GB, free: 147.3 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/1.136, allocations: 47.89 kB / 0.6694 GB, free: 147.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.965e-05/1.136, allocations: 80 kB / 0.6695 GB, free: 147.1 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00162/1.138, allocations: 1.113 MB / 0.6706 GB, free: 146.2 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002398/1.14, allocations: 1.456 MB / 0.672 GB, free: 145 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008481/1.149, allocations: 12.89 MB / 0.6846 GB, free: 132.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00371/1.152, allocations: 354.8 kB / 0.6849 GB, free: 132.5 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003622/1.153, allocations: 330.7 kB / 0.6852 GB, free: 132.2 MB / 0.4949 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.006359/1.159, allocations: 4.231 MB / 0.6894 GB, free: 128.5 MB / 0.4949 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009332/1.16, allocations: 0.555 MB / 0.6899 GB, free: 128 MB / 0.4949 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006996/1.167, allocations: 6.924 MB / 0.6967 GB, free: 122.1 MB / 0.4949 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.003679/1.171, allocations: 4.206 MB / 0.7008 GB, free: 117.9 MB / 0.4949 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.565e-05/1.171, allocations: 20 kB / 0.7008 GB, free: 117.9 MB / 0.4949 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.352e-05/1.171, allocations: 23.91 kB / 0.7008 GB, free: 117.8 MB / 0.4949 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01654/1.187, allocations: 16 MB / 0.7164 GB, free: 101.8 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.908e-06/1.187, allocations: 10.75 kB / 0.7165 GB, free: 101.8 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001427/1.189, allocations: 0.6943 MB / 0.7171 GB, free: 101.1 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00161/1.19, allocations: 1.18 MB / 0.7183 GB, free: 99.86 MB / 0.4949 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000179/1.19, allocations: 104 kB / 0.7184 GB, free: 99.76 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009037/1.2, allocations: 16.54 MB / 0.7345 GB, free: 82.56 MB / 0.4949 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.187e-06/1.2, allocations: 11.94 kB / 0.7346 GB, free: 82.55 MB / 0.4949 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009147/1.209, allocations: 10.12 MB / 0.7444 GB, free: 72.29 MB / 0.4949 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002142/1.211, allocations: 1.086 MB / 0.7455 GB, free: 71.2 MB / 0.4949 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004392/1.211, allocations: 91.91 kB / 0.7456 GB, free: 71.11 MB / 0.4949 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001285/1.213, allocations: 207.8 kB / 0.7458 GB, free: 70.91 MB / 0.4949 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004865/1.213, allocations: 323.2 kB / 0.7461 GB, free: 70.59 MB / 0.4949 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001774/1.213, allocations: 128 kB / 0.7462 GB, free: 70.46 MB / 0.4949 GB Notification: Performance of sorting global known variables: time 0.003597/1.217, allocations: 3.489 MB / 0.7496 GB, free: 66.99 MB / 0.4949 GB Notification: Performance of sort global known variables: time 9e-08/1.217, allocations: 0 / 0.7496 GB, free: 66.99 MB / 0.4949 GB Notification: Performance of remove unused functions: time 0.005552/1.222, allocations: 1.957 MB / 0.7515 GB, free: 65.04 MB / 0.4949 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.009653/1.232, allocations: 10.88 MB / 0.7622 GB, free: 54.02 MB / 0.4949 GB Notification: Performance of simCode: created initialization part: time 0.008828/1.241, allocations: 7.342 MB / 0.7693 GB, free: 46.62 MB / 0.4949 GB Notification: Performance of simCode: created event and clocks part: time 1.228e-05/1.241, allocations: 0 / 0.7693 GB, free: 46.62 MB / 0.4949 GB Notification: Performance of simCode: created simulation system equations: time 0.003721/1.245, allocations: 3.863 MB / 0.7731 GB, free: 42.68 MB / 0.4949 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004895/1.249, allocations: 1.456 MB / 0.7745 GB, free: 41.27 MB / 0.4949 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2442/1.494, allocations: 66.76 MB / 0.8397 GB, free: 166.1 MB / 0.4949 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004837/1.498, allocations: 6.98 MB / 0.8465 GB, free: 163.6 MB / 0.4949 GB Notification: Performance of simCode: alias equations: time 0.003509/1.502, allocations: 2.002 MB / 0.8485 GB, free: 162.4 MB / 0.4949 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003176/1.505, allocations: 4.424 MB / 0.8528 GB, free: 158.3 MB / 0.4949 GB Notification: Performance of SimCode: time 1.493e-06/1.505, allocations: 0 / 0.8528 GB, free: 158.3 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3311/1.836, allocations: 164 MB / 1.013 GB, free: 138.7 MB / 0.4949 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/13.85, allocations: 5.469 kB / 1.013 GB, free: 138.7 MB / 0.4949 GB " [Timeout remaining time 646] (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/jenkins/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/jenkins/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: 20.300894612446427]