Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.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.001138/0.001138, 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.001346/0.001346, 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.8893/0.8893, 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.914e-06/1.914e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.878e-05/2.069e-05, allocations: 2.844 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01079/0.01081, allocations: 9.157 MB / 333.7 MB, free: 6.668 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005462/0.01628, allocations: 3.306 MB / 337 MB, free: 3.348 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000629/0.0169, allocations: 71.5 kB / 337.1 MB, free: 3.277 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.01798, allocations: 0.7684 MB / 337.8 MB, free: 2.504 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001308/0.01929, allocations: 0.9235 MB / 338.8 MB, free: 1.574 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005204/0.01981, allocations: 431.2 kB / 339.2 MB, free: 1.148 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001912/0.02172, allocations: 2.872 MB / 342 MB, free: 14.27 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001171/0.02289, allocations: 1.305 MB / 343.4 MB, free: 12.9 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001457/0.02435, allocations: 1.891 MB / 345.2 MB, free: 11.01 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001134/0.02548, allocations: 1.36 MB / 346.6 MB, free: 9.645 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000275/0.02575, allocations: 336 kB / 346.9 MB, free: 9.316 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004729/0.02623, allocations: 439.8 kB / 347.4 MB, free: 8.887 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006374/0.02687, allocations: 0.9776 MB / 348.3 MB, free: 7.906 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007188/0.02758, allocations: 1.033 MB / 349.4 MB, free: 6.871 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002727/0.03031, allocations: 4.444 MB / 353.8 MB, free: 2.414 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.03032, allocations: 8 kB / 353.8 MB, free: 2.406 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.03032, allocations: 0 / 353.8 MB, free: 2.406 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.44e-05/0.03035, allocations: 0 / 353.8 MB, free: 2.406 MB / 314.7 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.003459/0.03381, allocations: 3.037 MB / 356.9 MB, free: 15.32 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.03385, allocations: 11.98 kB / 356.9 MB, free: 15.31 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002841/0.03414, allocations: 325 kB / 357.2 MB, free: 14.98 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005045/0.03464, allocations: 335 kB / 357.5 MB, free: 14.65 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00177/0.03641, allocations: 1.558 MB / 359.1 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.964e-05/0.0365, allocations: 168.8 kB / 359.2 MB, free: 12.88 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002214/0.03672, allocations: 228.1 kB / 359.5 MB, free: 12.66 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003032/0.03975, allocations: 3.013 MB / 362.5 MB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.044e-05/0.03979, allocations: 4 kB / 362.5 MB, free: 9.531 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001461/0.03994, allocations: 95.98 kB / 362.6 MB, free: 9.438 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.35e-05/0.04002, allocations: 112.3 kB / 362.7 MB, free: 9.324 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002664/0.04269, allocations: 2.433 MB / 365.1 MB, free: 6.875 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008078/0.05077, allocations: 8.172 MB / 373.3 MB, free: 14.43 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001376/0.05214, allocations: 1.174 MB / 374.5 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001187/0.05333, allocations: 0.9215 MB / 375.4 MB, free: 12.32 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001696/0.0535, allocations: 53.52 kB / 375.4 MB, free: 12.27 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.802e-05/0.05354, allocations: 51.44 kB / 375.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 2.184e-06/0.05354, allocations: 0 / 375.5 MB, free: 12.21 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.007923/0.06146, allocations: 6.056 MB / 381.5 MB, free: 6.121 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.265e-05/0.06149, allocations: 64.41 kB / 381.6 MB, free: 6.047 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001427/0.06292, allocations: 1.593 MB / 383.2 MB, free: 4.445 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.906e-05/0.06298, allocations: 45.7 kB / 383.2 MB, free: 4.395 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005312/0.06351, allocations: 1.138 MB / 384.4 MB, free: 3.242 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002195/0.06373, allocations: 440.2 kB / 384.8 MB, free: 2.809 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002676/0.064, allocations: 271.5 kB / 385.1 MB, free: 2.539 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.243e-05/0.06406, allocations: 309.1 kB / 385.4 MB, free: 2.234 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007405/0.0648, allocations: 0.7066 MB / 386.1 MB, free: 1.527 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009282/0.06573, allocations: 1.134 MB / 387.2 MB, free: 220 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001797/0.06753, allocations: 1.967 MB / 389.2 MB, free: 14.07 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.57e-06/0.06753, allocations: 4 kB / 389.2 MB, free: 14.06 MB / 362.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002514/0.07005, allocations: 2.456 MB / 391.6 MB, free: 11.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.6e-05/0.07007, allocations: 12 kB / 391.7 MB, free: 11.57 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.479e-05/0.07009, allocations: 15.94 kB / 391.7 MB, free: 11.56 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005707/0.07066, allocations: 411.4 kB / 392.1 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006726/0.07133, allocations: 359.4 kB / 392.4 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004351/0.07568, allocations: 6.762 MB / 399.2 MB, free: 3.684 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005739/0.07626, allocations: 107.9 kB / 399.3 MB, free: 3.578 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.308e-05/0.07633, allocations: 60 kB / 399.3 MB, free: 3.52 MB / 362.7 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.0007578/0.07709, allocations: 0.7241 MB / 400.1 MB, free: 2.785 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001692/0.07726, allocations: 186.8 kB / 400.3 MB, free: 2.602 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002276/0.07953, allocations: 2.107 MB / 402.4 MB, free: 484 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.436e-06/0.07954, allocations: 16 kB / 402.4 MB, free: 468 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.07955, allocations: 4 kB / 402.4 MB, free: 464 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.07955, allocations: 3.984 kB / 402.4 MB, free: 460 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004606/0.08416, allocations: 4.415 MB / 406.8 MB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.712e-06/0.08417, allocations: 8.031 kB / 406.8 MB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004845/0.08465, allocations: 219.7 kB / 407 MB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006305/0.08528, allocations: 463.3 kB / 407.5 MB, free: 11.22 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.067e-05/0.08534, allocations: 39.98 kB / 407.5 MB, free: 11.18 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00494/0.09028, allocations: 8.202 MB / 415.7 MB, free: 2.531 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.09029, allocations: 12 kB / 415.7 MB, free: 2.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0032/0.09349, allocations: 3.128 MB / 418.9 MB, free: 15.32 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004292/0.09392, allocations: 338.7 kB / 419.2 MB, free: 14.99 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001326/0.09405, allocations: 28 kB / 419.2 MB, free: 14.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004559/0.0945, allocations: 83.89 kB / 419.3 MB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001388/0.09464, allocations: 104.7 kB / 419.4 MB, free: 14.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.705e-05/0.09469, allocations: 35.98 kB / 419.4 MB, free: 14.74 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009398/0.09563, allocations: 1.074 MB / 420.5 MB, free: 13.67 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.09563, allocations: 0 / 420.5 MB, free: 13.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009423/0.09657, allocations: 495.9 kB / 421 MB, free: 13.19 MB / 394.7 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.003649/0.1002, allocations: 3.766 MB / 424.8 MB, free: 9.332 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.1024, allocations: 2.151 MB / 426.9 MB, free: 7.137 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.1024, allocations: 0 / 426.9 MB, free: 7.137 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001295/0.1037, allocations: 1.427 MB / 428.3 MB, free: 5.66 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00117/0.1048, allocations: 473.7 kB / 428.8 MB, free: 5.207 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02028/0.1251, allocations: 17.72 MB / 446.5 MB, free: 2.766 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000983/0.1261, allocations: 1.298 MB / 447.8 MB, free: 1.426 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.000723/0.1268, allocations: 394.8 kB / 448.2 MB, free: 1.035 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007611/0.1276, allocations: 0.8713 MB / 449.1 MB, free: 168 kB / 410.7 MB Notification: Performance of SimCode: time 1.804e-06/0.1276, allocations: 4 kB / 449.1 MB, free: 164 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1813/0.3089, allocations: 48.55 MB / 497.6 MB, free: 74.42 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.709/9.018, allocations: 7.938 kB / 497.6 MB, free: 74.41 MB / 410.7 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 12.083988687954843]