Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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.002061/0.002061, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.002017/0.002017, allocations: 212.7 kB / 24.52 MB, free: 3.91 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.565/1.565, allocations: 230.5 MB / 258.2 MB, free: 7.801 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001874/0.001874, allocations: 55.91 kB / 378.5 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2648, allocations: 53.39 MB / 431.9 MB, free: 6.469 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02406/0.2888, allocations: 19.33 MB / 451.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01473/0.3036, allocations: 6.375 MB / 457.6 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005316/0.3089, allocations: 178.9 kB / 457.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005577/0.3145, allocations: 1.506 MB / 459.3 MB, free: 10.97 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009349/0.3238, allocations: 2.12 MB / 461.4 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005316/0.3291, allocations: 1.32 MB / 462.8 MB, free: 7.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01022/0.3393, allocations: 6.591 MB / 469.3 MB, free: 0.9062 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005086/0.3444, allocations: 3.136 MB / 472.5 MB, free: 13.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005138/0.3496, allocations: 3.1 MB / 475.6 MB, free: 10.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006921/0.3565, allocations: 3.74 MB / 479.3 MB, free: 6.824 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002169/0.3587, allocations: 0.8203 MB / 480.1 MB, free: 6.004 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003596/0.3623, allocations: 1.113 MB / 481.3 MB, free: 4.891 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002814/0.3651, allocations: 2.049 MB / 483.3 MB, free: 2.836 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005512/0.3706, allocations: 2.828 MB / 486.1 MB, free: 15.99 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01445/0.385, allocations: 10.94 MB / 497.1 MB, free: 5.023 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.385, allocations: 12 kB / 497.1 MB, free: 5.012 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.385, allocations: 0 / 497.1 MB, free: 5.012 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003332/0.3854, allocations: 0 / 497.1 MB, free: 5.012 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01806/0.4034, allocations: 7.035 MB / 0.4923 GB, free: 13.91 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.4035, allocations: 12.03 kB / 0.4923 GB, free: 13.89 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001453/0.4036, allocations: 139 kB / 0.4924 GB, free: 13.76 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001167/0.4048, allocations: 0.7329 MB / 0.4932 GB, free: 13.02 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004938/0.4097, allocations: 1.082 MB / 0.4942 GB, free: 11.93 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007745/0.4175, allocations: 3.704 MB / 0.4978 GB, free: 8.16 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003767/0.4179, allocations: 414.7 kB / 0.4982 GB, free: 7.754 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00127/0.4191, allocations: 0.5195 MB / 0.4987 GB, free: 7.234 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01361/0.4327, allocations: 7.282 MB / 0.5058 GB, free: 15.82 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001301/0.4329, allocations: 19.88 kB / 0.5059 GB, free: 15.8 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004989/0.4334, allocations: 219.9 kB / 0.5061 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002677/0.4336, allocations: 258.6 kB / 0.5063 GB, free: 15.34 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01087/0.4445, allocations: 5.952 MB / 0.5121 GB, free: 9.375 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03812/0.4826, allocations: 19.97 MB / 0.5316 GB, free: 4.867 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006792/0.4894, allocations: 3.724 MB / 0.5353 GB, free: 1.332 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.2484/0.7379, allocations: 2.081 MB / 0.5373 GB, free: 97.8 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01261/0.7505, allocations: 5.265 MB / 0.5424 GB, free: 96.06 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.974e-05/0.7505, allocations: 62.91 kB / 0.5425 GB, free: 96.01 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 5.08e-06/0.7505, allocations: 2.062 kB / 0.5425 GB, free: 96.01 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.01968/0.7702, allocations: 10.25 MB / 0.5525 GB, free: 92.06 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.081e-05/0.7703, allocations: 79.92 kB / 0.5526 GB, free: 91.97 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003957/0.7742, allocations: 3.171 MB / 0.5557 GB, free: 89.3 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001879/0.7744, allocations: 65.7 kB / 0.5558 GB, free: 89.23 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001375/0.7758, allocations: 2.586 MB / 0.5583 GB, free: 87.25 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005588/0.7763, allocations: 0.8743 MB / 0.5591 GB, free: 86.51 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007438/0.7771, allocations: 0.5592 MB / 0.5597 GB, free: 85.99 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.186e-05/0.7771, allocations: 301.1 kB / 0.56 GB, free: 85.69 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001718/0.7788, allocations: 1.333 MB / 0.5613 GB, free: 84.37 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002143/0.781, allocations: 2.371 MB / 0.5636 GB, free: 81.55 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004228/0.7852, allocations: 3.917 MB / 0.5674 GB, free: 77.16 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.163e-05/0.7852, allocations: 10.31 kB / 0.5674 GB, free: 77.16 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006753/0.792, allocations: 4.588 MB / 0.5719 GB, free: 72.5 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.668e-05/0.792, allocations: 20 kB / 0.5719 GB, free: 72.48 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.334e-05/0.7921, allocations: 32 kB / 0.5719 GB, free: 72.45 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.7932, allocations: 0.5412 MB / 0.5725 GB, free: 71.88 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002403/0.7956, allocations: 0.741 MB / 0.5732 GB, free: 71.14 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006714/0.8023, allocations: 9.87 MB / 0.5828 GB, free: 60.73 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003198/0.8055, allocations: 189.5 kB / 0.583 GB, free: 60.55 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002993/0.8058, allocations: 140 kB / 0.5832 GB, free: 60.41 MB / 446.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (377): * Single equations (assignments): 370 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * 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): 5 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.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.002851/0.8086, allocations: 1.578 MB / 0.5847 GB, free: 58.83 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008382/0.8095, allocations: 369.6 kB / 0.585 GB, free: 58.46 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005665/0.8152, allocations: 3.829 MB / 0.5888 GB, free: 54.59 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.479e-05/0.8152, allocations: 28 kB / 0.5888 GB, free: 54.56 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.242e-05/0.8152, allocations: 8 kB / 0.5888 GB, free: 54.55 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.931e-05/0.8152, allocations: 15.89 kB / 0.5888 GB, free: 54.54 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01221/0.8274, allocations: 8.218 MB / 0.5969 GB, free: 46.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-05/0.8274, allocations: 8 kB / 0.5969 GB, free: 46.24 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001553/0.829, allocations: 407.6 kB / 0.5973 GB, free: 45.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001643/0.8306, allocations: 0.7559 MB / 0.598 GB, free: 45.06 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000151/0.8308, allocations: 63.97 kB / 0.5981 GB, free: 45 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01125/0.842, allocations: 15.97 MB / 0.6136 GB, free: 28.13 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.842, allocations: 4 kB / 0.6137 GB, free: 28.12 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008086/0.8501, allocations: 5.64 MB / 0.6192 GB, free: 22.38 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001911/0.852, allocations: 0.6419 MB / 0.6198 GB, free: 21.73 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008562/0.8529, allocations: 63.45 kB / 0.6198 GB, free: 21.68 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001761/0.8546, allocations: 135.9 kB / 0.62 GB, free: 21.54 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004167/0.855, allocations: 189.5 kB / 0.6202 GB, free: 21.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00014/0.8552, allocations: 71.98 kB / 0.6202 GB, free: 21.29 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002746/0.8579, allocations: 2.139 MB / 0.6223 GB, free: 19.16 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.8579, allocations: 0 / 0.6223 GB, free: 19.16 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00383/0.8618, allocations: 1.004 MB / 0.6233 GB, free: 18.16 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (198): * Single equations (assignments): 190 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.008218/0.87, allocations: 6.35 MB / 0.6295 GB, free: 11.7 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005682/0.8757, allocations: 3.864 MB / 0.6333 GB, free: 7.773 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.089e-05/0.8757, allocations: 0 / 0.6333 GB, free: 7.773 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003472/0.8791, allocations: 2.679 MB / 0.6359 GB, free: 4.992 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004621/0.8838, allocations: 0.9682 MB / 0.6368 GB, free: 4.047 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.06458/0.9484, allocations: 35.42 MB / 0.6714 GB, free: 15.27 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004413/0.9528, allocations: 2.906 MB / 0.6743 GB, free: 12.33 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003147/0.9559, allocations: 0.8074 MB / 0.6751 GB, free: 11.52 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003363/0.9593, allocations: 2.112 MB / 0.6771 GB, free: 9.406 MB / 494.1 MB Notification: Performance of SimCode: time 1.282e-06/0.9593, allocations: 0 / 0.6771 GB, free: 9.406 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.436/1.395, allocations: 94.28 MB / 0.7692 GB, free: 190.8 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.94/21.34, allocations: 5.906 kB / 0.7692 GB, free: 190.8 MB / 0.545 GB " [Timeout remaining time 638] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 656] Reference file matches [Calling sys.exit(0), Time elapsed: 32.72373826499097]