Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_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.0008314/0.0008314, allocations: 95.08 kB / 17.35 MB, free: 6.023 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009548/0.0009548, allocations: 200.3 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.159/1.159, allocations: 227.7 MB / 246.8 MB, free: 9.668 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002814/0.0002814, allocations: 8.281 kB / 307.8 MB, free: 0.4961 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08493/0.08523, allocations: 51.52 MB / 359.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.007819/0.09309, allocations: 9.078 MB / 368.4 MB, free: 3.848 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00385/0.09695, allocations: 3.104 MB / 371.5 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004277/0.09739, allocations: 47.81 kB / 371.6 MB, free: 0.6836 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.09844, allocations: 0.5903 MB / 372.2 MB, free: 92 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.1236/0.2221, allocations: 0.6821 MB / 372.9 MB, free: 10.16 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.2232, allocations: 350.9 kB / 373.2 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003709/0.2269, allocations: 2.866 MB / 376.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003093/0.23, allocations: 1.949 MB / 378 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001554/0.2316, allocations: 0.8941 MB / 378.9 MB, free: 9.379 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002384/0.234, allocations: 1.264 MB / 380.2 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005165/0.2345, allocations: 132.5 kB / 380.3 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001047/0.2356, allocations: 248 kB / 380.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001022/0.2366, allocations: 0.6841 MB / 381.2 MB, free: 8.992 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002009/0.2386, allocations: 1.195 MB / 382.4 MB, free: 8.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004732/0.2434, allocations: 3.884 MB / 386.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.2434, allocations: 0 / 386.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2434, allocations: 0 / 386.3 MB, free: 7.367 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001103/0.2435, allocations: 1.094 kB / 386.3 MB, free: 7.367 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.007134/0.2507, allocations: 2.478 MB / 388.8 MB, free: 5.676 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.972e-05/0.2507, allocations: 13.56 kB / 388.8 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007454/0.2515, allocations: 311.7 kB / 389.1 MB, free: 5.438 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00132/0.2528, allocations: 300.3 kB / 389.4 MB, free: 5.289 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003449/0.2563, allocations: 1.49 MB / 390.9 MB, free: 4.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002083/0.2565, allocations: 166.4 kB / 391.1 MB, free: 4.148 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004812/0.257, allocations: 222.2 kB / 391.3 MB, free: 4.066 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006476/0.2635, allocations: 2.808 MB / 394.1 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.228e-05/0.2636, allocations: 2.531 kB / 394.1 MB, free: 2.395 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002836/0.2639, allocations: 91.72 kB / 394.2 MB, free: 2.324 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001516/0.264, allocations: 104.5 kB / 394.3 MB, free: 2.305 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005758/0.2698, allocations: 2.376 MB / 396.6 MB, free: 1.094 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01348/0.2833, allocations: 8.645 MB / 405.3 MB, free: 9.648 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002063/0.2854, allocations: 1.724 MB / 407 MB, free: 7.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00153/0.2869, allocations: 0.9849 MB / 408 MB, free: 6.828 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002294/0.2872, allocations: 209.7 kB / 408.2 MB, free: 6.586 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.317e-05/0.2872, allocations: 39.56 kB / 408.2 MB, free: 6.539 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.134e-06/0.2872, allocations: 4 kB / 408.3 MB, free: 6.535 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01135/0.2986, allocations: 6.347 MB / 414.6 MB, free: 24 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.244e-05/0.2986, allocations: 64.41 kB / 414.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001671/0.3003, allocations: 1.449 MB / 416.1 MB, free: 14.48 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.343e-05/0.3004, allocations: 41.7 kB / 416.2 MB, free: 14.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005955/0.301, allocations: 1.042 MB / 417.2 MB, free: 13.38 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002724/0.3013, allocations: 411.5 kB / 417.6 MB, free: 12.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000149/0.3014, allocations: 113.7 kB / 417.7 MB, free: 12.87 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.3015, allocations: 366.7 kB / 418.1 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001022/0.3026, allocations: 0.6988 MB / 418.8 MB, free: 11.8 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.3038, allocations: 1.085 MB / 419.8 MB, free: 10.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002335/0.3061, allocations: 1.884 MB / 421.7 MB, free: 8.52 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.39e-06/0.3062, allocations: 4 kB / 421.7 MB, free: 8.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003427/0.3096, allocations: 2.438 MB / 424.2 MB, free: 6.039 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.798e-05/0.3096, allocations: 8 kB / 424.2 MB, free: 6.031 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.3096, allocations: 12 kB / 424.2 MB, free: 6.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008256/0.3105, allocations: 423.2 kB / 424.6 MB, free: 5.594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.3116, allocations: 335.5 kB / 424.9 MB, free: 5.266 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005481/0.317, allocations: 6.473 MB / 431.4 MB, free: 14.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009341/0.318, allocations: 111.8 kB / 431.5 MB, free: 14.3 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.729e-05/0.3181, allocations: 56 kB / 431.6 MB, free: 14.24 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.0009063/0.319, allocations: 0.6924 MB / 432.3 MB, free: 13.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.3192, allocations: 162 kB / 432.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003272/0.3225, allocations: 2.155 MB / 434.6 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.848e-06/0.3225, allocations: 12 kB / 434.6 MB, free: 11.17 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.262e-06/0.3225, allocations: 4 kB / 434.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.3226, allocations: 7.984 kB / 434.6 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006204/0.3288, allocations: 4.612 MB / 439.2 MB, free: 6.441 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.384e-06/0.3288, allocations: 7.984 kB / 439.2 MB, free: 6.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008247/0.3296, allocations: 219.6 kB / 439.4 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009724/0.3306, allocations: 455.3 kB / 439.9 MB, free: 5.762 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.317e-05/0.3307, allocations: 35.97 kB / 439.9 MB, free: 5.727 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006407/0.3371, allocations: 7.918 MB / 447.8 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.3371, allocations: 4 kB / 447.8 MB, free: 13.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004116/0.3412, allocations: 3.132 MB / 451 MB, free: 10.06 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005033/0.3417, allocations: 390.9 kB / 451.3 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001841/0.3419, allocations: 31.98 kB / 451.4 MB, free: 9.629 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007917/0.3427, allocations: 87.91 kB / 451.5 MB, free: 9.543 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.3429, allocations: 100.7 kB / 451.6 MB, free: 9.445 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.717e-05/0.343, allocations: 39.98 kB / 451.6 MB, free: 9.406 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001158/0.3442, allocations: 0.9927 MB / 452.6 MB, free: 8.414 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3442, allocations: 0 / 452.6 MB, free: 8.414 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001288/0.3455, allocations: 456.1 kB / 453 MB, free: 7.969 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.00455/0.35, allocations: 3.781 MB / 456.8 MB, free: 4.094 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002968/0.353, allocations: 2.241 MB / 459.1 MB, free: 1.797 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.353, allocations: 0 / 459.1 MB, free: 1.797 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001972/0.355, allocations: 1.449 MB / 460.5 MB, free: 304 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002156/0.3571, allocations: 413.7 kB / 460.9 MB, free: 15.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02482/0.382, allocations: 19.4 MB / 480.3 MB, free: 11.32 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001268/0.3833, allocations: 1.803 MB / 482.1 MB, free: 9.484 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0009263/0.3842, allocations: 369.6 kB / 482.5 MB, free: 9.117 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008949/0.3851, allocations: 0.8156 MB / 483.3 MB, free: 8.305 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3851, allocations: 4 kB / 483.3 MB, free: 8.301 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.165/3.55, allocations: 39.39 MB / 0.5104 GB, free: 1.344 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002086/3.551, allocations: 257.2 kB / 0.5107 GB, free: 1.082 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.316/5.867, allocations: 0 / 0.5107 GB, free: 1.082 MB / 430.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches