Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.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.001576/0.001576, 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 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.001673/0.001673, allocations: 214 kB / 24.52 MB, free: 3.914 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.4/1.4, allocations: 230.6 MB / 258.3 MB, free: 7.789 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001488/0.001488, allocations: 43.94 kB / 378.5 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2783/0.2798, allocations: 53.36 MB / 431.9 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01238/0.2922, allocations: 9.137 MB / 441 MB, free: 13.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007413/0.2996, allocations: 3.276 MB / 444.3 MB, free: 10.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001969/0.3016, allocations: 71.5 kB / 444.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001956/0.3035, allocations: 0.7686 MB / 445.1 MB, free: 9.363 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00251/0.306, allocations: 0.8892 MB / 446 MB, free: 8.469 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009779/0.307, allocations: 427.4 kB / 446.4 MB, free: 8.051 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003071/0.3101, allocations: 2.77 MB / 449.2 MB, free: 5.27 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001811/0.3119, allocations: 1.352 MB / 450.6 MB, free: 3.848 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001988/0.3139, allocations: 1.301 MB / 451.9 MB, free: 2.543 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002494/0.3164, allocations: 1.619 MB / 453.5 MB, free: 0.918 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004612/0.3168, allocations: 336 kB / 453.8 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008663/0.3177, allocations: 443.8 kB / 454.2 MB, free: 160 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009933/0.3187, allocations: 0.9543 MB / 455.2 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001473/0.3202, allocations: 1.214 MB / 456.4 MB, free: 13.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005079/0.3253, allocations: 4.441 MB / 460.8 MB, free: 9.523 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3253, allocations: 0 / 460.8 MB, free: 9.523 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.3253, allocations: 4 kB / 460.9 MB, free: 9.52 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001024/0.3254, allocations: 0 / 460.9 MB, free: 9.52 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006609/0.332, allocations: 3.061 MB / 463.9 MB, free: 6.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.452e-05/0.332, allocations: 12.03 kB / 463.9 MB, free: 6.398 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.237e-05/0.3321, allocations: 56.61 kB / 464 MB, free: 6.34 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004202/0.3325, allocations: 325 kB / 464.3 MB, free: 6.012 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008767/0.3334, allocations: 335 kB / 464.6 MB, free: 5.684 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002866/0.3363, allocations: 1.562 MB / 466.2 MB, free: 4.082 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001446/0.3364, allocations: 164.4 kB / 466.3 MB, free: 3.918 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000347/0.3368, allocations: 227.9 kB / 466.6 MB, free: 3.695 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004914/0.3417, allocations: 3.017 MB / 469.6 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.422e-05/0.3417, allocations: 3.938 kB / 469.6 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002031/0.3419, allocations: 88 kB / 469.7 MB, free: 488 kB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001312/0.3421, allocations: 124.3 kB / 469.8 MB, free: 360 kB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004093/0.3462, allocations: 2.43 MB / 472.2 MB, free: 13.9 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01468/0.3608, allocations: 8.167 MB / 480.4 MB, free: 5.461 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00231/0.3631, allocations: 1.182 MB / 481.6 MB, free: 4.277 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001791/0.3649, allocations: 0.9131 MB / 482.5 MB, free: 3.367 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002483/0.3652, allocations: 56.94 kB / 482.5 MB, free: 3.312 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.576e-05/0.3652, allocations: 43.56 kB / 482.6 MB, free: 3.258 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.637e-06/0.3652, allocations: 0 / 482.6 MB, free: 3.258 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01489/0.3801, allocations: 6.074 MB / 488.7 MB, free: 13.16 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.986e-05/0.3802, allocations: 64.41 kB / 488.7 MB, free: 13.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003313/0.3835, allocations: 1.566 MB / 490.3 MB, free: 11.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.851e-05/0.3836, allocations: 45.7 kB / 490.3 MB, free: 11.46 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001052/0.3846, allocations: 1.142 MB / 491.5 MB, free: 10.3 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004626/0.3851, allocations: 448.2 kB / 491.9 MB, free: 9.863 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000522/0.3856, allocations: 279.4 kB / 492.2 MB, free: 9.582 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3858, allocations: 301.1 kB / 492.5 MB, free: 9.285 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.3871, allocations: 0.7105 MB / 493.2 MB, free: 8.574 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001709/0.3888, allocations: 1.142 MB / 494.3 MB, free: 7.246 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003072/0.3919, allocations: 1.967 MB / 496.3 MB, free: 5.094 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.083e-05/0.3919, allocations: 7.938 kB / 496.3 MB, free: 5.086 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004689/0.3966, allocations: 2.448 MB / 498.8 MB, free: 2.617 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.104e-05/0.3966, allocations: 8 kB / 498.8 MB, free: 2.609 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.621e-05/0.3966, allocations: 19.94 kB / 498.8 MB, free: 2.59 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001053/0.3977, allocations: 426.3 kB / 499.2 MB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001336/0.399, allocations: 351.4 kB / 499.5 MB, free: 1.82 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007613/0.4066, allocations: 6.771 MB / 0.4944 GB, free: 10.71 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001507/0.4081, allocations: 115.9 kB / 0.4946 GB, free: 10.6 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001252/0.4083, allocations: 63.98 kB / 0.4946 GB, free: 10.54 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001342/0.4096, allocations: 0.7182 MB / 0.4953 GB, free: 9.809 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003246/0.4099, allocations: 182.9 kB / 0.4955 GB, free: 9.629 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003839/0.4138, allocations: 2.103 MB / 0.4975 GB, free: 7.5 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.349e-05/0.4138, allocations: 16 kB / 0.4976 GB, free: 7.484 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.4138, allocations: 7.938 kB / 0.4976 GB, free: 7.477 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.326e-05/0.4138, allocations: 7.969 kB / 0.4976 GB, free: 7.469 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007699/0.4215, allocations: 4.407 MB / 0.5019 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.903e-06/0.4215, allocations: 0 / 0.5019 GB, free: 2.941 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009254/0.4224, allocations: 223.7 kB / 0.5021 GB, free: 2.723 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001154/0.4236, allocations: 458.2 kB / 0.5025 GB, free: 2.266 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.716e-05/0.4237, allocations: 35.98 kB / 0.5026 GB, free: 2.23 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008193/0.4319, allocations: 8.23 MB / 0.5106 GB, free: 9.543 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.469e-06/0.4319, allocations: 4 kB / 0.5106 GB, free: 9.539 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004965/0.4368, allocations: 3.14 MB / 0.5137 GB, free: 6.324 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008214/0.4377, allocations: 330.8 kB / 0.514 GB, free: 6 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000226/0.4379, allocations: 35.98 kB / 0.514 GB, free: 5.965 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008643/0.4387, allocations: 79.91 kB / 0.5141 GB, free: 5.887 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002225/0.439, allocations: 104.7 kB / 0.5142 GB, free: 5.785 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.4391, allocations: 43.92 kB / 0.5142 GB, free: 5.742 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001576/0.4406, allocations: 1.071 MB / 0.5153 GB, free: 4.676 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4406, allocations: 0 / 0.5153 GB, free: 4.676 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001582/0.4422, allocations: 488 kB / 0.5158 GB, free: 4.199 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005404/0.4476, allocations: 3.781 MB / 0.5194 GB, free: 332 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003802/0.4514, allocations: 2.148 MB / 0.5215 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 6.632e-06/0.4514, allocations: 0 / 0.5215 GB, free: 14.13 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002355/0.4538, allocations: 1.419 MB / 0.5229 GB, free: 12.67 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00224/0.456, allocations: 490.8 kB / 0.5234 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2421/0.6981, allocations: 17.78 MB / 0.5408 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001327/0.6995, allocations: 1.3 MB / 0.542 GB, free: 99.89 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009914/0.7005, allocations: 398.5 kB / 0.5424 GB, free: 99.87 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000826/0.7013, allocations: 0.8735 MB / 0.5433 GB, free: 99.16 MB / 446.1 MB Notification: Performance of SimCode: time 1.392e-06/0.7013, allocations: 0 / 0.5433 GB, free: 99.16 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0836/0.7849, allocations: 48.62 MB / 0.5907 GB, free: 55.39 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.1/15.89, allocations: 7.938 kB / 0.5907 GB, free: 55.38 MB / 446.1 MB " [Timeout remaining time 644] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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: 22.545337268034928]