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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001407/0.001407, allocations: 104.1 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001622/0.001622, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.337/1.337, allocations: 227.4 MB / 246.8 MB, free: 10.55 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002172/0.002173, allocations: 61.88 kB / 307.1 MB, free: 0.5078 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1079/0.1101, allocations: 50.52 MB / 357.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0109/0.121, allocations: 10.35 MB / 367.9 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005845/0.1269, allocations: 3.482 MB / 371.4 MB, free: 88 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001267/0.1282, allocations: 55.75 kB / 371.5 MB, free: 32 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1623/0.2905, allocations: 0.7653 MB / 372.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003331/0.2939, allocations: 0.8327 MB / 373.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001458/0.2954, allocations: 424.4 kB / 373.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003829/0.2992, allocations: 2.744 MB / 376.2 MB, free: 9.828 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003707/0.303, allocations: 2.414 MB / 378.6 MB, free: 9.328 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002589/0.3056, allocations: 1.269 MB / 379.9 MB, free: 8.957 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003006/0.3086, allocations: 1.581 MB / 381.5 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009825/0.3096, allocations: 334.8 kB / 381.8 MB, free: 8.258 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001625/0.3112, allocations: 443.4 kB / 382.3 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00113/0.3124, allocations: 0.9363 MB / 383.2 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001939/0.3143, allocations: 1.507 MB / 384.7 MB, free: 6.758 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003732/0.3181, allocations: 4.338 MB / 389 MB, free: 4.867 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.3181, allocations: 4 kB / 389 MB, free: 4.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3181, allocations: 0 / 389 MB, free: 4.863 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.363e-05/0.3182, allocations: 1.25 kB / 389 MB, free: 4.863 MB / 302.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.005384/0.3235, allocations: 3.066 MB / 392.1 MB, free: 2.746 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.3236, allocations: 9.625 kB / 392.1 MB, free: 2.746 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003583/0.324, allocations: 322.2 kB / 392.4 MB, free: 2.504 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008565/0.3248, allocations: 318.3 kB / 392.7 MB, free: 2.348 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002407/0.3272, allocations: 1.58 MB / 394.3 MB, free: 1.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001439/0.3274, allocations: 172.5 kB / 394.5 MB, free: 1.141 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003074/0.3277, allocations: 222.3 kB / 394.7 MB, free: 1.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004235/0.332, allocations: 2.914 MB / 397.6 MB, free: 15.34 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.644e-05/0.332, allocations: 16.75 kB / 397.6 MB, free: 15.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002017/0.3322, allocations: 89.06 kB / 397.7 MB, free: 15.26 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001064/0.3324, allocations: 120 kB / 397.8 MB, free: 15.23 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003977/0.3363, allocations: 2.433 MB / 400.3 MB, free: 13.93 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01277/0.3491, allocations: 9.11 MB / 409.4 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00218/0.3513, allocations: 1.697 MB / 411.1 MB, free: 2.797 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001652/0.353, allocations: 1.004 MB / 412.1 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002625/0.3533, allocations: 201.5 kB / 412.3 MB, free: 1.562 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.711e-05/0.3533, allocations: 39.56 kB / 412.3 MB, free: 1.516 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 2.234e-06/0.3533, allocations: 0 / 412.3 MB, free: 1.516 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01414/0.3675, allocations: 6.584 MB / 418.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.543e-05/0.3675, allocations: 64.41 kB / 419 MB, free: 10.7 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/0.3699, allocations: 1.565 MB / 420.5 MB, free: 9.129 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.371e-05/0.37, allocations: 53.7 kB / 420.6 MB, free: 9.07 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007136/0.3707, allocations: 1.109 MB / 421.7 MB, free: 7.949 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003137/0.371, allocations: 429.6 kB / 422.1 MB, free: 7.535 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004164/0.3715, allocations: 271.3 kB / 422.4 MB, free: 7.266 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 7.897e-05/0.3715, allocations: 305.1 kB / 422.7 MB, free: 6.965 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001134/0.3727, allocations: 0.7105 MB / 423.4 MB, free: 6.254 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001374/0.3741, allocations: 1.131 MB / 424.5 MB, free: 4.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002602/0.3767, allocations: 1.968 MB / 426.5 MB, free: 2.797 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.3767, allocations: 4 kB / 426.5 MB, free: 2.793 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004057/0.3808, allocations: 2.522 MB / 429 MB, free: 236 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.497e-05/0.3808, allocations: 19.92 kB / 429 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.929e-05/0.3808, allocations: 12 kB / 429 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009663/0.3818, allocations: 420.5 kB / 429.5 MB, free: 15.78 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001286/0.3831, allocations: 359.4 kB / 429.8 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006518/0.3896, allocations: 7.124 MB / 436.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00154/0.3912, allocations: 107.9 kB / 437 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001769/0.3914, allocations: 67.98 kB / 437.1 MB, free: 7.719 MB / 350.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.001464/0.3928, allocations: 0.7197 MB / 437.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005188/0.3934, allocations: 173.8 kB / 438 MB, free: 6.816 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004086/0.3975, allocations: 2.194 MB / 440.2 MB, free: 4.582 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/0.3975, allocations: 12 kB / 440.2 MB, free: 4.57 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.279e-05/0.3975, allocations: 8 kB / 440.2 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.703e-05/0.3975, allocations: 15.98 kB / 440.2 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008395/0.4059, allocations: 4.786 MB / 445 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.857e-06/0.406, allocations: 4 kB / 445 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009681/0.4069, allocations: 223.7 kB / 445.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00113/0.4081, allocations: 458.9 kB / 445.7 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.987e-05/0.4082, allocations: 39.91 kB / 445.7 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007913/0.4161, allocations: 8.686 MB / 454.4 MB, free: 5.688 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.4161, allocations: 8 kB / 454.4 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00498/0.4211, allocations: 3.217 MB / 457.6 MB, free: 2.367 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008912/0.422, allocations: 398.8 kB / 458 MB, free: 1.957 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004232/0.4225, allocations: 31.98 kB / 458 MB, free: 1.926 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001122/0.4236, allocations: 87.91 kB / 458.1 MB, free: 1.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002391/0.4239, allocations: 96.75 kB / 458.2 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.567e-05/0.4239, allocations: 39.98 kB / 458.3 MB, free: 1.707 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001717/0.4257, allocations: 1.071 MB / 459.3 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4257, allocations: 0 / 459.3 MB, free: 0.6406 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00184/0.4275, allocations: 492 kB / 459.8 MB, free: 164 kB / 366.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.005212/0.4327, allocations: 3.848 MB / 463.7 MB, free: 12.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004763/0.4375, allocations: 2.797 MB / 466.5 MB, free: 9.363 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.4375, allocations: 4 kB / 466.5 MB, free: 9.359 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002297/0.4398, allocations: 1.482 MB / 467.9 MB, free: 7.824 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002469/0.4423, allocations: 485.5 kB / 468.4 MB, free: 7.367 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02774/0.4701, allocations: 19.65 MB / 488.1 MB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001605/0.4717, allocations: 1.871 MB / 489.9 MB, free: 356 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001173/0.4729, allocations: 394.9 kB / 490.3 MB, free: 15.95 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001094/0.474, allocations: 0.8741 MB / 491.2 MB, free: 15.08 MB / 414.1 MB Notification: Performance of SimCode: time 8.406e-06/0.474, allocations: 0 / 491.2 MB, free: 15.08 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.501/1.975, allocations: 44.3 MB / 0.523 GB, free: 3.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.75/13.73, allocations: 19.44 kB / 0.523 GB, free: 3.164 MB / 446.1 MB (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 --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) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches