Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001189/0.001188, allocations: 105.3 kB / 17.06 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001177/0.001177, allocations: 189.4 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 43.91 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2366/0.238, allocations: 49.45 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01156/0.2496, allocations: 9.621 MB / 409.9 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006133/0.2557, allocations: 3.096 MB / 413 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001173/0.257, allocations: 55.75 kB / 413 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001642/0.2587, allocations: 0.6704 MB / 413.7 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002176/0.2609, allocations: 0.7609 MB / 414.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008682/0.2617, allocations: 395.4 kB / 414.8 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002815/0.2646, allocations: 2.544 MB / 417.4 MB, free: 7.605 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002619/0.2672, allocations: 2.33 MB / 419.7 MB, free: 5.211 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001509/0.2687, allocations: 1.18 MB / 420.9 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001964/0.2707, allocations: 1.495 MB / 422.4 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004526/0.2712, allocations: 316 kB / 422.7 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007682/0.2719, allocations: 427.8 kB / 423.1 MB, free: 1.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009121/0.2729, allocations: 0.8999 MB / 424 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0015/0.2744, allocations: 1.416 MB / 425.4 MB, free: 15.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004288/0.2787, allocations: 4.165 MB / 429.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.2787, allocations: 0 / 429.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2787, allocations: 0 / 429.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.143e-05/0.2788, allocations: 0 / 429.6 MB, free: 11.3 MB / 350.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.005593/0.2844, allocations: 2.972 MB / 432.6 MB, free: 8.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2844, allocations: 8.031 kB / 432.6 MB, free: 8.25 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000388/0.2848, allocations: 312.2 kB / 432.9 MB, free: 7.934 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007102/0.2855, allocations: 299.2 kB / 433.2 MB, free: 7.641 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002514/0.2881, allocations: 1.551 MB / 434.7 MB, free: 6.031 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000137/0.2882, allocations: 164.1 kB / 434.9 MB, free: 5.867 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003131/0.2885, allocations: 212 kB / 435.1 MB, free: 5.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004618/0.2932, allocations: 2.799 MB / 437.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.196e-05/0.2932, allocations: 0 / 437.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002106/0.2934, allocations: 91.98 kB / 438 MB, free: 2.684 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001179/0.2936, allocations: 104.2 kB / 438.1 MB, free: 2.578 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004068/0.2976, allocations: 2.347 MB / 440.4 MB, free: 220 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0132/0.3109, allocations: 8.529 MB / 449 MB, free: 7.441 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002511/0.3134, allocations: 1.699 MB / 450.7 MB, free: 5.617 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001771/0.3152, allocations: 0.9751 MB / 451.6 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002976/0.3155, allocations: 203.1 kB / 451.8 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.3156, allocations: 47.55 kB / 451.9 MB, free: 4.352 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 2.765e-06/0.3156, allocations: 0 / 451.9 MB, free: 4.352 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01367/0.3293, allocations: 6.265 MB / 458.1 MB, free: 13.92 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.798e-05/0.3293, allocations: 68.41 kB / 458.2 MB, free: 13.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002088/0.3314, allocations: 1.433 MB / 459.6 MB, free: 12.39 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 9.299e-05/0.3315, allocations: 45.7 kB / 459.7 MB, free: 12.34 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008419/0.3324, allocations: 1.067 MB / 460.8 MB, free: 11.27 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003796/0.3328, allocations: 436.3 kB / 461.2 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004218/0.3332, allocations: 255.5 kB / 461.4 MB, free: 10.58 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001986/0.3334, allocations: 365.9 kB / 461.8 MB, free: 10.22 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001171/0.3346, allocations: 0.6832 MB / 462.5 MB, free: 9.535 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001467/0.3361, allocations: 1.073 MB / 463.5 MB, free: 8.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002783/0.3389, allocations: 1.867 MB / 465.4 MB, free: 6.277 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3389, allocations: 4 kB / 465.4 MB, free: 6.273 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004281/0.3432, allocations: 2.426 MB / 467.8 MB, free: 3.809 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.847e-05/0.3432, allocations: 15.94 kB / 467.9 MB, free: 3.793 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.96e-05/0.3432, allocations: 12 kB / 467.9 MB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.3443, allocations: 411.4 kB / 468.3 MB, free: 3.367 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001194/0.3455, allocations: 339.4 kB / 468.6 MB, free: 3.035 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007316/0.3528, allocations: 7.032 MB / 475.6 MB, free: 11.59 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001352/0.3542, allocations: 103.9 kB / 475.7 MB, free: 11.48 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001216/0.3543, allocations: 63.98 kB / 475.8 MB, free: 11.42 MB / 398.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.001134/0.3555, allocations: 0.6885 MB / 476.5 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002723/0.3557, allocations: 163 kB / 476.7 MB, free: 10.56 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003828/0.3596, allocations: 2.134 MB / 478.8 MB, free: 8.379 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.042e-05/0.3596, allocations: 11.94 kB / 478.8 MB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.375e-06/0.3596, allocations: 4 kB / 478.8 MB, free: 8.363 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.3596, allocations: 11.97 kB / 478.8 MB, free: 8.352 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007526/0.3672, allocations: 4.56 MB / 483.4 MB, free: 3.664 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.646e-06/0.3672, allocations: 4.406 kB / 483.4 MB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008821/0.3681, allocations: 219.7 kB / 483.6 MB, free: 3.445 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001129/0.3692, allocations: 447.1 kB / 484 MB, free: 2.996 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.412e-05/0.3693, allocations: 35.92 kB / 484.1 MB, free: 2.961 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008637/0.378, allocations: 8.622 MB / 492.7 MB, free: 9.777 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.378, allocations: 4 kB / 492.7 MB, free: 9.773 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005031/0.383, allocations: 3.1 MB / 495.8 MB, free: 6.578 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007319/0.3838, allocations: 387.9 kB / 496.2 MB, free: 6.18 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002137/0.384, allocations: 32 kB / 496.2 MB, free: 6.148 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008215/0.3848, allocations: 83.84 kB / 496.3 MB, free: 6.066 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002265/0.3851, allocations: 92.75 kB / 496.4 MB, free: 5.977 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.891e-05/0.3852, allocations: 39.98 kB / 496.4 MB, free: 5.938 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001424/0.3866, allocations: 0.9886 MB / 497.4 MB, free: 4.949 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3866, allocations: 0 / 497.4 MB, free: 4.949 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001499/0.3881, allocations: 463.9 kB / 497.9 MB, free: 4.496 MB / 414.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.005529/0.3936, allocations: 3.753 MB / 0.4898 GB, free: 0.6445 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003802/0.3975, allocations: 2.244 MB / 0.492 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.802e-06/0.3975, allocations: 4 kB / 0.492 GB, free: 14.34 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002418/0.3999, allocations: 1.431 MB / 0.4934 GB, free: 12.85 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002002/0.4019, allocations: 422.6 kB / 0.4938 GB, free: 12.45 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02601/0.428, allocations: 16.93 MB / 0.5104 GB, free: 10.83 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00163/0.4296, allocations: 1.803 MB / 0.5121 GB, free: 8.992 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001024/0.4307, allocations: 365.6 kB / 0.5125 GB, free: 8.629 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001081/0.4317, allocations: 0.8156 MB / 0.5133 GB, free: 7.812 MB / 446.1 MB Notification: Performance of SimCode: time 4.81e-07/0.4318, allocations: 3.938 kB / 0.5133 GB, free: 7.809 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2544/0.6862, allocations: 41.8 MB / 0.5541 GB, free: 126.7 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.37/14.05, allocations: 14.8 kB / 0.5541 GB, free: 126.7 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches