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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001279/0.00128, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001471/0.001471, allocations: 207.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.34/1.34, allocations: 227.4 MB / 247.5 MB, free: 10.34 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001118/0.001119, allocations: 58.75 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08691/0.08805, allocations: 50.54 MB / 358.9 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01055/0.09863, allocations: 9.662 MB / 368.6 MB, free: 3.613 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006513/0.1052, allocations: 3.166 MB / 371.7 MB, free: 444 kB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001352/0.1066, allocations: 55.75 kB / 371.8 MB, free: 388 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.1717/0.2783, allocations: 0.675 MB / 372.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002884/0.2813, allocations: 0.762 MB / 373.2 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001097/0.2824, allocations: 395.4 kB / 373.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003684/0.2861, allocations: 2.555 MB / 376.2 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002895/0.289, allocations: 2.331 MB / 378.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002193/0.2912, allocations: 1.186 MB / 379.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002964/0.2942, allocations: 1.499 MB / 381.2 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005918/0.2948, allocations: 317.6 kB / 381.5 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001184/0.296, allocations: 425.6 kB / 381.9 MB, free: 9.625 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008676/0.2969, allocations: 0.8947 MB / 382.8 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002006/0.2989, allocations: 1.424 MB / 384.2 MB, free: 8.227 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004766/0.3037, allocations: 4.163 MB / 388.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.053e-06/0.3037, allocations: 1.375 kB / 388.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.3037, allocations: 0 / 388.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of Transformations before backend: time 0.0001065/0.3038, allocations: 0 / 388.4 MB, free: 6.594 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.007111/0.3109, allocations: 2.91 MB / 391.3 MB, free: 4.586 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.691e-05/0.311, allocations: 13.61 kB / 391.3 MB, free: 4.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000984/0.312, allocations: 296.7 kB / 391.6 MB, free: 4.438 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002837/0.3148, allocations: 1.529 MB / 393.1 MB, free: 3.352 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001144/0.315, allocations: 167.4 kB / 393.3 MB, free: 3.273 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003044/0.3153, allocations: 209.4 kB / 393.5 MB, free: 3.203 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004794/0.3201, allocations: 2.81 MB / 396.3 MB, free: 1.52 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-05/0.3202, allocations: 7.156 kB / 396.3 MB, free: 1.516 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001767/0.3203, allocations: 83.16 kB / 396.4 MB, free: 1.453 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001021/0.3205, allocations: 105.7 kB / 396.5 MB, free: 1.434 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003659/0.3241, allocations: 2.353 MB / 398.9 MB, free: 228 kB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01374/0.3379, allocations: 8.493 MB / 407.4 MB, free: 8.117 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002396/0.3403, allocations: 1.702 MB / 409.1 MB, free: 6.293 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001694/0.342, allocations: 0.9781 MB / 410 MB, free: 5.32 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002965/0.3423, allocations: 202.3 kB / 410.2 MB, free: 5.086 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.284e-05/0.3424, allocations: 47.56 kB / 410.3 MB, free: 5.031 MB / 318.1 MB Notification: Performance of pre-optimization done (n=101): time 2.966e-06/0.3424, allocations: 0 / 410.3 MB, free: 5.031 MB / 318.1 MB Notification: Performance of matching and sorting (n=116): time 0.01296/0.3554, allocations: 6.232 MB / 416.5 MB, free: 14.64 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.3554, allocations: 64.97 kB / 416.6 MB, free: 14.56 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/0.3576, allocations: 1.445 MB / 418 MB, free: 13.1 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.148e-05/0.3577, allocations: 45.7 kB / 418.1 MB, free: 13.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006791/0.3584, allocations: 1.041 MB / 419.1 MB, free: 12 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003189/0.3587, allocations: 407.9 kB / 419.5 MB, free: 11.6 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000391/0.3591, allocations: 251.4 kB / 419.8 MB, free: 11.35 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.3592, allocations: 364.4 kB / 420.1 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.3603, allocations: 0.691 MB / 420.8 MB, free: 10.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001353/0.3617, allocations: 1.066 MB / 421.9 MB, free: 9.074 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002564/0.3643, allocations: 1.868 MB / 423.7 MB, free: 7.051 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.325e-06/0.3643, allocations: 4 kB / 423.7 MB, free: 7.047 MB / 334.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004258/0.3686, allocations: 2.417 MB / 426.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.595e-05/0.3686, allocations: 8 kB / 426.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.3686, allocations: 12 kB / 426.2 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001004/0.3696, allocations: 430.1 kB / 426.6 MB, free: 4.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001221/0.3709, allocations: 331.5 kB / 426.9 MB, free: 3.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007117/0.378, allocations: 7.042 MB / 434 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001574/0.3796, allocations: 99.8 kB / 434.1 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001253/0.3797, allocations: 56 kB / 434.1 MB, free: 12.21 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.001273/0.381, allocations: 0.6925 MB / 434.8 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003567/0.3814, allocations: 162 kB / 435 MB, free: 11.35 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003582/0.385, allocations: 2.13 MB / 437.1 MB, free: 9.172 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.385, allocations: 12 kB / 437.1 MB, free: 9.16 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.019e-05/0.385, allocations: 8 kB / 437.1 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.109e-05/0.385, allocations: 3.984 kB / 437.1 MB, free: 9.148 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007844/0.3929, allocations: 4.568 MB / 441.7 MB, free: 4.477 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.918e-06/0.3929, allocations: 4 kB / 441.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009415/0.3939, allocations: 216.1 kB / 441.9 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001182/0.3951, allocations: 448.4 kB / 442.3 MB, free: 3.812 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.745e-05/0.3952, allocations: 31.98 kB / 442.4 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008295/0.4035, allocations: 8.627 MB / 451 MB, free: 10.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.4036, allocations: 11.94 kB / 451 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005272/0.4088, allocations: 3.108 MB / 454.1 MB, free: 7.406 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001048/0.4099, allocations: 375 kB / 454.5 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002176/0.4101, allocations: 35.98 kB / 454.5 MB, free: 6.984 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008773/0.411, allocations: 83.91 kB / 454.6 MB, free: 6.902 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.4113, allocations: 92.75 kB / 454.7 MB, free: 6.809 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-05/0.4114, allocations: 39.98 kB / 454.7 MB, free: 6.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001524/0.4129, allocations: 0.9849 MB / 455.7 MB, free: 5.785 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4129, allocations: 0 / 455.7 MB, free: 5.785 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001821/0.4147, allocations: 468.1 kB / 456.2 MB, free: 5.328 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.0004068/0.4151, allocations: 186 kB / 456.4 MB, free: 5.137 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003442/0.4186, allocations: 2.232 MB / 458.6 MB, free: 2.848 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.4186, allocations: 0 / 458.6 MB, free: 2.848 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002179/0.4208, allocations: 1.443 MB / 460 MB, free: 1.355 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001786/0.4226, allocations: 422.9 kB / 460.4 MB, free: 0.9492 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007196/0.4298, allocations: 4.45 MB / 464.9 MB, free: 12.45 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001457/0.4313, allocations: 1.803 MB / 466.7 MB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001105/0.4324, allocations: 365.6 kB / 467.1 MB, free: 10.25 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003265/0.4327, allocations: 115.4 kB / 467.2 MB, free: 10.14 MB / 382.1 MB Notification: Performance of SimCode: time 5.41e-07/0.4328, allocations: 0 / 467.2 MB, free: 10.14 MB / 382.1 MB Notification: Performance of Templates: time 0.04214/0.4749, allocations: 24.43 MB / 491.6 MB, free: 1.957 MB / 398.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > 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