Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.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.001626/0.001626, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.002044/0.002044, allocations: 216.2 kB / 24.53 MB, free: 4.066 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.34/1.34, allocations: 230.6 MB / 258.3 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 179] 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_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_4_1_0_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.001443/0.001443, allocations: 43.92 kB / 378.6 MB, free: 3.113 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2201/0.2215, allocations: 53.36 MB / 431.9 MB, free: 6.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02459/0.2461, allocations: 22.54 MB / 454.5 MB, free: 216 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01329/0.2594, allocations: 6.698 MB / 461.2 MB, free: 9.496 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003023/0.2624, allocations: 178.9 kB / 461.4 MB, free: 9.32 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00353/0.2659, allocations: 1.588 MB / 462.9 MB, free: 7.723 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005255/0.2712, allocations: 2.144 MB / 465.1 MB, free: 5.566 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002787/0.274, allocations: 1.357 MB / 466.4 MB, free: 4.211 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00787/0.2819, allocations: 6.589 MB / 473 MB, free: 13.6 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004375/0.2862, allocations: 3.14 MB / 476.2 MB, free: 10.38 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004204/0.2904, allocations: 3.084 MB / 479.3 MB, free: 7.281 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005044/0.2955, allocations: 3.744 MB / 483 MB, free: 3.523 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001038/0.2965, allocations: 0.8203 MB / 483.8 MB, free: 2.703 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001889/0.2984, allocations: 1.132 MB / 485 MB, free: 1.57 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001837/0.3002, allocations: 2.053 MB / 487 MB, free: 15.51 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003687/0.3039, allocations: 3.547 MB / 490.6 MB, free: 11.95 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01103/0.315, allocations: 10.88 MB / 0.4897 GB, free: 1.027 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.315, allocations: 0 / 0.4897 GB, free: 1.027 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.315, allocations: 0 / 0.4897 GB, free: 1.027 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001681/0.3151, allocations: 0 / 0.4897 GB, free: 1.027 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.0149/0.33, allocations: 7.039 MB / 0.4966 GB, free: 9.918 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.3301, allocations: 12.03 kB / 0.4966 GB, free: 9.906 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001207/0.3302, allocations: 139 kB / 0.4967 GB, free: 9.77 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009715/0.3312, allocations: 0.7329 MB / 0.4974 GB, free: 9.027 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004891/0.3361, allocations: 1.082 MB / 0.4985 GB, free: 7.941 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007471/0.3435, allocations: 3.704 MB / 0.5021 GB, free: 4.172 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004057/0.3439, allocations: 402.7 kB / 0.5025 GB, free: 3.777 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001261/0.3452, allocations: 0.5234 MB / 0.503 GB, free: 3.254 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01245/0.3576, allocations: 7.059 MB / 0.5099 GB, free: 12.12 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001238/0.3578, allocations: 15.91 kB / 0.5099 GB, free: 12.11 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005214/0.3583, allocations: 228 kB / 0.5101 GB, free: 11.88 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002553/0.3585, allocations: 262.6 kB / 0.5104 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01119/0.3697, allocations: 5.956 MB / 0.5162 GB, free: 5.66 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2152/0.5849, allocations: 21.81 MB / 0.5375 GB, free: 90.08 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006466/0.5914, allocations: 3.751 MB / 0.5411 GB, free: 89.97 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003039/0.5944, allocations: 2.091 MB / 0.5432 GB, free: 89.93 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008599/0.603, allocations: 5.826 MB / 0.5489 GB, free: 87.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.594e-05/0.603, allocations: 59.5 kB / 0.5489 GB, free: 87.61 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 3.456e-06/0.603, allocations: 0 / 0.5489 GB, free: 87.61 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.01698/0.62, allocations: 10.25 MB / 0.5589 GB, free: 84.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.62, allocations: 83.28 kB / 0.559 GB, free: 83.96 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003195/0.6232, allocations: 3.172 MB / 0.5621 GB, free: 82.32 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001288/0.6234, allocations: 65.45 kB / 0.5622 GB, free: 82.26 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009547/0.6243, allocations: 2.579 MB / 0.5647 GB, free: 80.32 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003881/0.6247, allocations: 0.8666 MB / 0.5655 GB, free: 79.6 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006517/0.6254, allocations: 0.5627 MB / 0.5661 GB, free: 79.27 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.217e-05/0.6254, allocations: 305.1 kB / 0.5664 GB, free: 78.97 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001613/0.627, allocations: 1.337 MB / 0.5677 GB, free: 78 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00189/0.6289, allocations: 2.335 MB / 0.57 GB, free: 75.22 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003666/0.6326, allocations: 3.924 MB / 0.5738 GB, free: 70.82 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.231e-05/0.6326, allocations: 15.39 kB / 0.5738 GB, free: 70.81 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00579/0.6384, allocations: 4.577 MB / 0.5783 GB, free: 66.16 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.38e-05/0.6384, allocations: 16 kB / 0.5783 GB, free: 66.14 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.76e-05/0.6384, allocations: 40.02 kB / 0.5783 GB, free: 66.11 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009655/0.6394, allocations: 0.5479 MB / 0.5789 GB, free: 65.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002225/0.6416, allocations: 0.741 MB / 0.5796 GB, free: 64.8 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00626/0.6479, allocations: 9.919 MB / 0.5893 GB, free: 54.32 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002486/0.6503, allocations: 195.7 kB / 0.5895 GB, free: 54.13 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001923/0.6505, allocations: 140 kB / 0.5896 GB, free: 54 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.002075/0.6526, allocations: 1.586 MB / 0.5912 GB, free: 52.4 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004768/0.6531, allocations: 364.3 kB / 0.5915 GB, free: 52.04 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005143/0.6582, allocations: 3.823 MB / 0.5952 GB, free: 48.18 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-05/0.6582, allocations: 24 kB / 0.5953 GB, free: 48.16 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.056e-05/0.6583, allocations: 8 kB / 0.5953 GB, free: 48.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.779e-05/0.6583, allocations: 15.95 kB / 0.5953 GB, free: 48.13 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01056/0.6688, allocations: 8.735 MB / 0.6038 GB, free: 39.32 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.656e-06/0.6688, allocations: 8 kB / 0.6038 GB, free: 39.31 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001486/0.6703, allocations: 404 kB / 0.6042 GB, free: 38.91 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001541/0.6719, allocations: 0.7589 MB / 0.6049 GB, free: 38.13 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001393/0.672, allocations: 63.97 kB / 0.605 GB, free: 38.07 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009923/0.6819, allocations: 16.08 MB / 0.6207 GB, free: 21.09 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.6819, allocations: 7.938 kB / 0.6207 GB, free: 21.09 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006938/0.6889, allocations: 5.636 MB / 0.6262 GB, free: 15.35 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001432/0.6903, allocations: 0.6342 MB / 0.6268 GB, free: 14.71 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004251/0.6907, allocations: 56.17 kB / 0.6269 GB, free: 14.66 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001466/0.6922, allocations: 143.8 kB / 0.627 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003396/0.6925, allocations: 205.3 kB / 0.6272 GB, free: 14.31 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001277/0.6927, allocations: 75.97 kB / 0.6273 GB, free: 14.24 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002277/0.6949, allocations: 2.135 MB / 0.6294 GB, free: 12.11 MB / 446.1 MB Notification: Performance of sort global known variables: time 9e-08/0.6949, allocations: 0 / 0.6294 GB, free: 12.11 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002673/0.6976, allocations: 0.9999 MB / 0.6304 GB, free: 11.11 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.007118/0.7047, allocations: 6.349 MB / 0.6366 GB, free: 4.652 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.0049/0.7096, allocations: 3.876 MB / 0.6404 GB, free: 0.7109 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.882e-06/0.7096, allocations: 5 kB / 0.6404 GB, free: 0.707 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003908/0.7136, allocations: 2.663 MB / 0.643 GB, free: 13.94 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004062/0.7176, allocations: 0.9788 MB / 0.6439 GB, free: 12.99 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05649/0.7741, allocations: 35.43 MB / 0.6785 GB, free: 8.215 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003406/0.7775, allocations: 3.419 MB / 0.6818 GB, free: 4.766 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002279/0.7798, allocations: 0.8035 MB / 0.6826 GB, free: 3.961 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002645/0.7824, allocations: 2.116 MB / 0.6847 GB, free: 1.844 MB / 494.1 MB Notification: Performance of SimCode: time 8.92e-07/0.7824, allocations: 0 / 0.6847 GB, free: 1.844 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3394/1.122, allocations: 91.89 MB / 0.7744 GB, free: 186.9 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.66/18.78, allocations: 10.86 kB / 0.7744 GB, free: 186.9 MB / 0.545 GB " [Timeout remaining time 641] (rm -f Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 29.317041005997453]