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.001276/0.001276, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001409/0.001409, allocations: 207.2 kB / 20.75 MB, free: 2.273 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.524/1.524, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",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="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001623/0.001623, allocations: 51.91 kB / 373 MB, free: 10.19 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1106, allocations: 53.32 MB / 426.3 MB, free: 4.773 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.2128/0.3234, allocations: 22.47 MB / 448.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01634/0.3398, allocations: 6.679 MB / 455.5 MB, free: 8.836 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005943/0.3457, allocations: 175.6 kB / 455.7 MB, free: 8.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005545/0.3512, allocations: 1.579 MB / 457.2 MB, free: 7.906 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008418/0.3597, allocations: 2.136 MB / 459.4 MB, free: 6.496 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004531/0.3642, allocations: 1.332 MB / 460.7 MB, free: 5.664 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0108/0.375, allocations: 6.584 MB / 467.3 MB, free: 2.199 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007948/0.3829, allocations: 3.91 MB / 471.2 MB, free: 28 kB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006269/0.3892, allocations: 3.085 MB / 474.3 MB, free: 14.22 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007083/0.3963, allocations: 3.744 MB / 478 MB, free: 11.72 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002528/0.3988, allocations: 0.8182 MB / 478.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004422/0.4033, allocations: 1.125 MB / 480 MB, free: 11.14 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003426/0.4067, allocations: 2.045 MB / 482 MB, free: 9.094 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008807/0.4155, allocations: 3.551 MB / 485.6 MB, free: 5.523 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01773/0.4332, allocations: 10.88 MB / 496.4 MB, free: 10.61 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.155e-06/0.4332, allocations: 0 / 496.4 MB, free: 10.61 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.4332, allocations: 0 / 496.4 MB, free: 10.61 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0004446/0.4337, allocations: 0 / 496.4 MB, free: 10.61 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.02073/0.4544, allocations: 7.102 MB / 0.4917 GB, free: 3.414 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.367e-05/0.4544, allocations: 12.03 kB / 0.4918 GB, free: 3.402 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002068/0.4565, allocations: 0.7329 MB / 0.4925 GB, free: 2.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005884/0.4624, allocations: 1.086 MB / 0.4935 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00929/0.4717, allocations: 3.799 MB / 0.4972 GB, free: 13.7 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005042/0.4722, allocations: 403 kB / 0.4976 GB, free: 13.3 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001874/0.4741, allocations: 0.5272 MB / 0.4981 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01844/0.4925, allocations: 7.063 MB / 0.505 GB, free: 5.641 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002794/0.4928, allocations: 11.94 kB / 0.5051 GB, free: 5.629 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001414/0.4942, allocations: 220 kB / 0.5053 GB, free: 5.414 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000306/0.4945, allocations: 262.6 kB / 0.5055 GB, free: 5.156 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01412/0.5086, allocations: 5.954 MB / 0.5113 GB, free: 15.2 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0447/0.5533, allocations: 22.41 MB / 0.5332 GB, free: 8.227 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009961/0.5633, allocations: 8.328 MB / 0.5413 GB, free: 14.96 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004434/0.5677, allocations: 2.105 MB / 0.5434 GB, free: 12.85 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01351/0.5812, allocations: 6.472 MB / 0.5497 GB, free: 6.184 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.118e-05/0.5813, allocations: 56.56 kB / 0.5498 GB, free: 6.117 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 4.288e-06/0.5813, allocations: 4 kB / 0.5498 GB, free: 6.113 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.02542/0.6067, allocations: 11.16 MB / 0.5607 GB, free: 10.72 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.893e-05/0.6068, allocations: 73.41 kB / 0.5607 GB, free: 10.64 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005957/0.6127, allocations: 3.173 MB / 0.5638 GB, free: 7.469 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003703/0.6131, allocations: 65.7 kB / 0.5639 GB, free: 7.398 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00215/0.6153, allocations: 2.58 MB / 0.5664 GB, free: 4.793 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001089/0.6164, allocations: 0.8793 MB / 0.5673 GB, free: 3.906 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001317/0.6177, allocations: 0.5578 MB / 0.5678 GB, free: 3.34 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.6178, allocations: 305.1 kB / 0.5681 GB, free: 3.039 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002634/0.6204, allocations: 1.33 MB / 0.5694 GB, free: 1.707 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003485/0.6239, allocations: 2.346 MB / 0.5717 GB, free: 14.91 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006319/0.6302, allocations: 3.924 MB / 0.5755 GB, free: 10.52 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.241e-05/0.6303, allocations: 11.94 kB / 0.5756 GB, free: 10.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.009466/0.6397, allocations: 4.731 MB / 0.5802 GB, free: 5.664 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.841e-05/0.6398, allocations: 20 kB / 0.5802 GB, free: 5.645 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.633e-05/0.6398, allocations: 32 kB / 0.5802 GB, free: 5.613 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001382/0.6412, allocations: 0.5508 MB / 0.5808 GB, free: 5.043 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003025/0.6442, allocations: 0.737 MB / 0.5815 GB, free: 4.305 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01087/0.6551, allocations: 10.46 MB / 0.5917 GB, free: 9.148 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002924/0.658, allocations: 191.7 kB / 0.5919 GB, free: 8.961 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004952/0.6585, allocations: 144 kB / 0.592 GB, free: 8.82 MB / 0.4981 GB 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.003216/0.6617, allocations: 1.566 MB / 0.5935 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009768/0.6627, allocations: 369.6 kB / 0.5939 GB, free: 6.879 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008162/0.6709, allocations: 4.054 MB / 0.5979 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.259e-05/0.6709, allocations: 27.88 kB / 0.5979 GB, free: 2.703 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.243e-05/0.6709, allocations: 12 kB / 0.5979 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.079e-05/0.671, allocations: 11.95 kB / 0.5979 GB, free: 2.68 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01857/0.6895, allocations: 8.969 MB / 0.6067 GB, free: 9.508 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.081e-05/0.6896, allocations: 4 kB / 0.6067 GB, free: 9.504 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001939/0.6915, allocations: 404 kB / 0.6071 GB, free: 9.109 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002197/0.6937, allocations: 0.763 MB / 0.6078 GB, free: 8.328 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000321/0.694, allocations: 67.97 kB / 0.6079 GB, free: 8.262 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2182/0.9122, allocations: 16.91 MB / 0.6244 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.9122, allocations: 6.188 kB / 0.6244 GB, free: 151.4 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009739/0.9219, allocations: 5.869 MB / 0.6301 GB, free: 149.3 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001727/0.9236, allocations: 0.7184 MB / 0.6308 GB, free: 149.1 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007284/0.9244, allocations: 59.69 kB / 0.6309 GB, free: 149 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001885/0.9263, allocations: 137.3 kB / 0.631 GB, free: 149 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004632/0.9267, allocations: 184.4 kB / 0.6312 GB, free: 149 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/0.9269, allocations: 78.14 kB / 0.6313 GB, free: 148.9 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.003501/0.9304, allocations: 2.138 MB / 0.6333 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.01e-07/0.9304, allocations: 0 / 0.6333 GB, free: 148.2 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.004051/0.9344, allocations: 0.9922 MB / 0.6343 GB, free: 148.1 MB / 0.5137 GB 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.009813/0.9442, allocations: 6.576 MB / 0.6407 GB, free: 145 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006936/0.9512, allocations: 4.016 MB / 0.6447 GB, free: 143.1 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.031e-05/0.9512, allocations: 8.844 kB / 0.6447 GB, free: 143.1 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004431/0.9556, allocations: 2.66 MB / 0.6473 GB, free: 141.6 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004878/0.9605, allocations: 0.9701 MB / 0.6482 GB, free: 141.3 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04875/1.009, allocations: 35.7 MB / 0.6831 GB, free: 115.5 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002565/1.012, allocations: 3.416 MB / 0.6864 GB, free: 112 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002415/1.014, allocations: 0.8074 MB / 0.6872 GB, free: 111.2 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002246/1.016, allocations: 2.112 MB / 0.6893 GB, free: 109.1 MB / 0.5137 GB Notification: Performance of SimCode: time 1.143e-06/1.016, allocations: 4 kB / 0.6893 GB, free: 109.1 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1439/1.16, allocations: 89.43 MB / 0.7766 GB, free: 20.41 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.82/18.98, allocations: 19.45 kB / 0.7766 GB, free: 20.39 MB / 0.5137 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 657] Reference file matches [Calling sys.exit(0), Time elapsed: 26.872049092082307]