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.00106/0.00106, allocations: 108.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001163/0.001163, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.261/1.261, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001099/0.001099, allocations: 63.83 kB / 306.4 MB, free: 0.9414 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09152/0.09263, allocations: 50.53 MB / 356.9 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01048/0.1031, allocations: 9.607 MB / 366.5 MB, free: 4.75 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005144/0.1083, allocations: 3.131 MB / 369.6 MB, free: 1.605 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001071/0.1094, allocations: 51.75 kB / 369.7 MB, free: 1.555 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001536/0.1109, allocations: 0.5903 MB / 370.3 MB, free: 0.9609 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001882/0.1128, allocations: 0.6993 MB / 371 MB, free: 264 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1332/0.2461, allocations: 344.6 kB / 371.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003046/0.2492, allocations: 2.862 MB / 374.2 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0019/0.2511, allocations: 1.968 MB / 376.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001277/0.2524, allocations: 1.047 MB / 377.2 MB, free: 9.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001366/0.2537, allocations: 1.442 MB / 378.6 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002878/0.254, allocations: 195.6 kB / 378.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006349/0.2547, allocations: 310.8 kB / 379.1 MB, free: 9.672 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006694/0.2554, allocations: 0.7783 MB / 379.9 MB, free: 9.574 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.2565, allocations: 1.295 MB / 381.2 MB, free: 8.93 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003409/0.2599, allocations: 4.014 MB / 385.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2599, allocations: 0 / 385.2 MB, free: 7.637 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2599, allocations: 5.062 kB / 385.2 MB, free: 7.633 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.612e-05/0.26, allocations: 0 / 385.2 MB, free: 7.633 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.005625/0.2656, allocations: 2.912 MB / 388.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.2657, allocations: 9.75 kB / 388.1 MB, free: 5.836 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003607/0.2661, allocations: 313 kB / 388.4 MB, free: 5.602 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008165/0.2669, allocations: 293.4 kB / 388.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002125/0.269, allocations: 1.492 MB / 390.2 MB, free: 4.41 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001143/0.2691, allocations: 170.4 kB / 390.4 MB, free: 4.328 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002807/0.2694, allocations: 215.9 kB / 390.6 MB, free: 4.254 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004103/0.2735, allocations: 2.801 MB / 393.4 MB, free: 2.578 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.772e-05/0.2736, allocations: 5.312 kB / 393.4 MB, free: 2.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001801/0.2738, allocations: 86.39 kB / 393.5 MB, free: 2.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001033/0.2739, allocations: 108.3 kB / 393.6 MB, free: 2.488 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003407/0.2773, allocations: 2.346 MB / 395.9 MB, free: 1.289 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0124/0.2897, allocations: 8.601 MB / 404.5 MB, free: 9.754 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002299/0.2921, allocations: 1.704 MB / 406.2 MB, free: 7.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001627/0.2937, allocations: 0.9752 MB / 407.2 MB, free: 6.969 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002787/0.294, allocations: 203.1 kB / 407.4 MB, free: 6.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.227e-05/0.294, allocations: 47.56 kB / 407.5 MB, free: 6.68 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 3.005e-06/0.294, allocations: 0 / 407.5 MB, free: 6.68 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01298/0.307, allocations: 6.233 MB / 413.7 MB, free: 288 kB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.593e-05/0.3071, allocations: 68.41 kB / 413.8 MB, free: 204 kB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002002/0.3091, allocations: 1.441 MB / 415.2 MB, free: 14.75 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.229e-05/0.3092, allocations: 49.69 kB / 415.2 MB, free: 14.69 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006902/0.3099, allocations: 1.036 MB / 416.3 MB, free: 13.64 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003134/0.3102, allocations: 412.2 kB / 416.7 MB, free: 13.24 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003976/0.3106, allocations: 252.5 kB / 416.9 MB, free: 12.99 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3108, allocations: 357.9 kB / 417.3 MB, free: 12.64 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001133/0.3119, allocations: 0.691 MB / 418 MB, free: 11.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001362/0.3133, allocations: 1.073 MB / 419 MB, free: 10.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002475/0.3158, allocations: 1.864 MB / 420.9 MB, free: 8.691 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.694e-06/0.3158, allocations: 4 kB / 420.9 MB, free: 8.688 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004107/0.3199, allocations: 2.417 MB / 423.3 MB, free: 6.23 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.293e-05/0.3199, allocations: 11.98 kB / 423.3 MB, free: 6.219 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.518e-05/0.32, allocations: 15.94 kB / 423.4 MB, free: 6.203 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009503/0.3209, allocations: 413.4 kB / 423.8 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.3221, allocations: 331.5 kB / 424.1 MB, free: 5.465 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006359/0.3285, allocations: 6.459 MB / 430.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001247/0.3297, allocations: 107.8 kB / 430.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000119/0.3299, allocations: 59.98 kB / 430.7 MB, free: 14.45 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.001183/0.3311, allocations: 0.6885 MB / 431.4 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003913/0.3315, allocations: 154.1 kB / 431.6 MB, free: 13.59 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003798/0.3353, allocations: 2.13 MB / 433.7 MB, free: 11.42 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3353, allocations: 16 kB / 433.7 MB, free: 11.41 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.127e-05/0.3353, allocations: 4 kB / 433.7 MB, free: 11.4 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.199e-05/0.3353, allocations: 15.84 kB / 433.7 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007755/0.3431, allocations: 4.575 MB / 438.3 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.458e-06/0.3431, allocations: 4.406 kB / 438.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009331/0.3441, allocations: 215.7 kB / 438.5 MB, free: 6.492 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00113/0.3452, allocations: 458.2 kB / 439 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.372e-05/0.3453, allocations: 39.97 kB / 439 MB, free: 6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007248/0.3526, allocations: 7.909 MB / 446.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.3526, allocations: 7.938 kB / 446.9 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004657/0.3572, allocations: 3.101 MB / 450 MB, free: 10.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007678/0.358, allocations: 386.9 kB / 450.4 MB, free: 9.969 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003317/0.3584, allocations: 31.98 kB / 450.4 MB, free: 9.938 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009358/0.3593, allocations: 75.91 kB / 450.5 MB, free: 9.863 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002091/0.3595, allocations: 100.8 kB / 450.6 MB, free: 9.766 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.398e-05/0.3596, allocations: 35.98 kB / 450.6 MB, free: 9.73 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001499/0.3611, allocations: 0.9888 MB / 451.6 MB, free: 8.742 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3611, allocations: 0 / 451.6 MB, free: 8.742 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001642/0.3628, allocations: 464.1 kB / 452.1 MB, free: 8.289 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.005084/0.3679, allocations: 3.735 MB / 455.8 MB, free: 4.461 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003531/0.3714, allocations: 2.224 MB / 458 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.3714, allocations: 0 / 458 MB, free: 2.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002281/0.3737, allocations: 1.443 MB / 459.5 MB, free: 0.6836 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001961/0.3757, allocations: 406.9 kB / 459.9 MB, free: 308 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0299/0.4056, allocations: 19.22 MB / 479.1 MB, free: 11.91 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001633/0.4073, allocations: 1.799 MB / 480.9 MB, free: 10.08 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00112/0.4084, allocations: 369.6 kB / 481.3 MB, free: 9.715 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.4095, allocations: 0.823 MB / 482.1 MB, free: 8.898 MB / 398.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4095, allocations: 0 / 482.1 MB, free: 8.898 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06345/0.4729, allocations: 39.98 MB / 0.5098 GB, free: 1.316 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002126/0.4732, allocations: 245.6 kB / 0.5101 GB, free: 1.066 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.529/3.002, allocations: 0 / 0.5101 GB, free: 1.066 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