Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_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.001088/0.001088, 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.001034/0.001034, 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.9311/0.9311, allocations: 177 MB / 204.1 MB, free: 5.742 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.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.224e-06/2.224e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.485e-05/2.707e-05, allocations: 2.281 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter): time 0.01529/0.01532, allocations: 18.15 MB / 342.7 MB, free: 13.63 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.011/0.02631, allocations: 5.935 MB / 348.6 MB, free: 7.676 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002546/0.02886, allocations: 170.9 kB / 348.8 MB, free: 7.508 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002391/0.03125, allocations: 1.381 MB / 350.2 MB, free: 6.117 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003387/0.03464, allocations: 2.026 MB / 352.2 MB, free: 4.078 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001682/0.03632, allocations: 1.255 MB / 353.5 MB, free: 2.82 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.005178/0.0415, allocations: 6.434 MB / 359.9 MB, free: 12.37 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002878/0.04438, allocations: 2.924 MB / 362.8 MB, free: 9.359 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004541/0.04892, allocations: 4.304 MB / 367.1 MB, free: 5.047 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002709/0.05163, allocations: 2.903 MB / 370 MB, free: 2.137 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006502/0.05228, allocations: 0.7773 MB / 370.8 MB, free: 1.359 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00124/0.05352, allocations: 1.07 MB / 371.9 MB, free: 296 kB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001273/0.05479, allocations: 2.006 MB / 373.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001747/0.05654, allocations: 2.288 MB / 376.2 MB, free: 11.98 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006919/0.06345, allocations: 10.49 MB / 386.7 MB, free: 1.457 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.06346, allocations: 0 / 386.7 MB, free: 1.457 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.585e-06/0.06346, allocations: 0 / 386.7 MB, free: 1.457 MB / 346.7 MB Notification: Performance of Transformations before backend: time 0.0001365/0.0636, allocations: 0 / 386.7 MB, free: 1.457 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1347 * Number of variables: 1347 Notification: Performance of Generate backend data structure: time 0.008404/0.072, allocations: 6.624 MB / 393.3 MB, free: 10.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.07205, allocations: 11.98 kB / 393.3 MB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006842/0.07274, allocations: 0.7 MB / 394 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002308/0.07504, allocations: 1.028 MB / 395 MB, free: 9.008 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003924/0.07897, allocations: 3.509 MB / 398.5 MB, free: 5.43 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001845/0.07915, allocations: 390.6 kB / 398.9 MB, free: 5.047 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004896/0.07964, allocations: 0.5042 MB / 399.4 MB, free: 4.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0072/0.08684, allocations: 7.009 MB / 406.4 MB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.2e-05/0.08691, allocations: 7.953 kB / 406.4 MB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003156/0.08723, allocations: 212 kB / 406.6 MB, free: 13.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001461/0.08737, allocations: 242.2 kB / 406.9 MB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006056/0.09343, allocations: 5.748 MB / 412.6 MB, free: 7.199 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01875/0.1122, allocations: 18.8 MB / 431.4 MB, free: 3.914 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003841/0.116, allocations: 3.708 MB / 435.1 MB, free: 416 kB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002117/0.1181, allocations: 2.034 MB / 437.2 MB, free: 14.36 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005841/0.124, allocations: 5.04 MB / 442.2 MB, free: 9.285 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.758e-05/0.124, allocations: 60.56 kB / 442.3 MB, free: 9.219 MB / 410.7 MB Notification: Performance of pre-optimization done (n=205): time 4.037e-06/0.124, allocations: 7.922 kB / 442.3 MB, free: 9.211 MB / 410.7 MB Notification: Performance of matching and sorting (n=222): time 0.1874/0.3114, allocations: 9.565 MB / 451.8 MB, free: 109.9 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.972e-05/0.3115, allocations: 75.22 kB / 451.9 MB, free: 109.8 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004118/0.3156, allocations: 2.977 MB / 454.9 MB, free: 109.1 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004174/0.316, allocations: 61.52 kB / 454.9 MB, free: 109 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00095/0.317, allocations: 2.426 MB / 457.4 MB, free: 108.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004021/0.3174, allocations: 0.7975 MB / 458.2 MB, free: 107.6 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005509/0.3179, allocations: 0.5121 MB / 458.7 MB, free: 107.4 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 3.272e-05/0.318, allocations: 304.8 kB / 459 MB, free: 107.1 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.3194, allocations: 1.267 MB / 460.2 MB, free: 106.6 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001776/0.3212, allocations: 2.208 MB / 462.5 MB, free: 105 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002894/0.3241, allocations: 3.67 MB / 466.1 MB, free: 102.7 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.701e-05/0.3241, allocations: 11.72 kB / 466.1 MB, free: 102.7 MB / 410.7 MB Notification: Performance of matching and sorting (n=373) (initialization): time 0.004795/0.3289, allocations: 4.319 MB / 470.5 MB, free: 100.6 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.069e-05/0.3289, allocations: 16 kB / 470.5 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.807e-05/0.329, allocations: 28 kB / 470.5 MB, free: 100.6 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006795/0.3296, allocations: 0.539 MB / 471 MB, free: 100.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00118/0.3308, allocations: 0.6831 MB / 471.7 MB, free: 99.56 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004033/0.3348, allocations: 9.763 MB / 481.5 MB, free: 89.77 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001244/0.3361, allocations: 180.3 kB / 481.7 MB, free: 89.59 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000113/0.3362, allocations: 132 kB / 481.8 MB, free: 89.46 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 129 * 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 (345): * Single equations (assignments): 338 * 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,11,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.001703/0.3379, allocations: 1.511 MB / 483.3 MB, free: 87.96 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002568/0.3382, allocations: 341.8 kB / 483.6 MB, free: 87.62 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003257/0.3414, allocations: 3.655 MB / 487.3 MB, free: 83.93 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.3414, allocations: 24 kB / 487.3 MB, free: 83.91 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.3414, allocations: 8 kB / 487.3 MB, free: 83.9 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.082e-05/0.3414, allocations: 11.95 kB / 487.3 MB, free: 83.89 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00665/0.3481, allocations: 7.771 MB / 495.1 MB, free: 76.05 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.771e-06/0.3481, allocations: 6.438 kB / 495.1 MB, free: 76.05 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000752/0.3489, allocations: 383.4 kB / 495.5 MB, free: 75.68 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009653/0.3498, allocations: 0.7365 MB / 496.2 MB, free: 74.92 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.436e-05/0.3499, allocations: 67.97 kB / 496.3 MB, free: 74.85 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006858/0.3568, allocations: 15.83 MB / 0.5001 GB, free: 58.14 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.3568, allocations: 7.938 kB / 0.5001 GB, free: 58.14 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004941/0.3617, allocations: 5.328 MB / 0.5053 GB, free: 52.73 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009894/0.3627, allocations: 0.5992 MB / 0.5059 GB, free: 52.12 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002323/0.3629, allocations: 51.98 kB / 0.506 GB, free: 52.07 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007851/0.3637, allocations: 127.9 kB / 0.5061 GB, free: 51.95 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000274/0.364, allocations: 181.5 kB / 0.5062 GB, free: 51.77 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.76e-05/0.3641, allocations: 67.98 kB / 0.5063 GB, free: 51.71 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001754/0.3658, allocations: 1.98 MB / 0.5082 GB, free: 49.73 MB / 410.7 MB Notification: Performance of sort global known variables: time 8e-08/0.3658, allocations: 0 / 0.5082 GB, free: 49.73 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002293/0.3681, allocations: 0.9403 MB / 0.5092 GB, free: 48.8 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 13 (vfController.x,smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smrE.inertiaRotor.w,smrE.idq_sr[1],smrE.idq_sr[2],smrE.idq_dr[1],smrE.idq_dr[2],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 (182): * Single equations (assignments): 174 * 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,11,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.004867/0.373, allocations: 6.039 MB / 0.5151 GB, free: 42.67 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00341/0.3764, allocations: 3.693 MB / 0.5187 GB, free: 38.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.3764, allocations: 4 kB / 0.5187 GB, free: 38.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001851/0.3783, allocations: 2.566 MB / 0.5212 GB, free: 36.25 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00185/0.3801, allocations: 0.8619 MB / 0.522 GB, free: 35.41 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03502/0.4151, allocations: 33.11 MB / 0.5544 GB, free: 1.125 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002202/0.4173, allocations: 2.787 MB / 0.5571 GB, free: 14.3 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001436/0.4188, allocations: 0.7541 MB / 0.5578 GB, free: 13.54 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001618/0.4204, allocations: 1.949 MB / 0.5597 GB, free: 11.59 MB / 426.7 MB Notification: Performance of SimCode: time 1.683e-06/0.4204, allocations: 0 / 0.5597 GB, free: 11.59 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2626/0.683, allocations: 86.81 MB / 0.6445 GB, free: 143.3 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.885/10.57, allocations: 5.859 kB / 0.6445 GB, free: 143.3 MB / 474.7 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 15.609927079640329]