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.001207/0.001207, allocations: 112.8 kB / 17.06 MB, free: 5.996 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.001251/0.001251, allocations: 198.9 kB / 18 MB, free: 5.078 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.326/1.326, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 47.92 kB / 350.8 MB, free: 3.742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2889/0.2901, allocations: 49.44 MB / 400.2 MB, free: 8.395 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01211/0.3023, allocations: 9.624 MB / 409.9 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006805/0.3091, allocations: 3.1 MB / 413 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002306/0.3115, allocations: 55.75 kB / 413 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00255/0.3141, allocations: 0.6675 MB / 413.7 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003233/0.3174, allocations: 0.7687 MB / 414.5 MB, free: 10.53 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.3187, allocations: 391.4 kB / 414.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003387/0.3221, allocations: 2.544 MB / 417.4 MB, free: 7.594 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003289/0.3254, allocations: 2.326 MB / 419.7 MB, free: 5.203 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001908/0.3273, allocations: 1.188 MB / 420.9 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002714/0.33, allocations: 1.495 MB / 422.4 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008735/0.3309, allocations: 316 kB / 422.7 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001258/0.3322, allocations: 427.8 kB / 423.1 MB, free: 1.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001242/0.3335, allocations: 0.8999 MB / 424 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002583/0.3361, allocations: 1.416 MB / 425.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005244/0.3413, allocations: 4.147 MB / 429.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.3414, allocations: 3.938 kB / 429.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.3414, allocations: 0 / 429.6 MB, free: 11.3 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001552/0.3415, 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.007826/0.3494, allocations: 2.908 MB / 432.5 MB, free: 8.324 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.3494, allocations: 11.89 kB / 432.5 MB, free: 8.312 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007256/0.3502, allocations: 308.2 kB / 432.8 MB, free: 8 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001011/0.3512, allocations: 285.7 kB / 433.1 MB, free: 7.719 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003389/0.3546, allocations: 1.546 MB / 434.6 MB, free: 6.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.3548, allocations: 156.2 kB / 434.8 MB, free: 5.957 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005892/0.3554, allocations: 208 kB / 435 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006008/0.3614, allocations: 2.803 MB / 437.8 MB, free: 2.863 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.562e-05/0.3615, allocations: 3.906 kB / 437.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003462/0.3619, allocations: 92 kB / 437.9 MB, free: 2.77 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001152/0.362, allocations: 108.2 kB / 438 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004972/0.367, allocations: 2.351 MB / 440.3 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01641/0.3834, allocations: 8.503 MB / 448.8 MB, free: 7.543 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002617/0.3861, allocations: 1.691 MB / 450.5 MB, free: 5.727 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001837/0.3879, allocations: 0.9674 MB / 451.5 MB, free: 4.758 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003191/0.3883, allocations: 208.1 kB / 451.7 MB, free: 4.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.986e-05/0.3883, allocations: 47.5 kB / 451.8 MB, free: 4.465 MB / 366.1 MB Notification: Performance of pre-optimization done (n=101): time 4.899e-06/0.3884, allocations: 3.984 kB / 451.8 MB, free: 4.461 MB / 366.1 MB Notification: Performance of matching and sorting (n=116): time 0.01388/0.4023, allocations: 6.233 MB / 458 MB, free: 14.06 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.22e-05/0.4024, allocations: 68.41 kB / 458.1 MB, free: 13.98 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002675/0.4051, allocations: 1.433 MB / 459.5 MB, free: 12.54 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001406/0.4052, allocations: 45.7 kB / 459.5 MB, free: 12.48 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009838/0.4062, allocations: 1.041 MB / 460.6 MB, free: 11.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005053/0.4067, allocations: 410.1 kB / 461 MB, free: 11.02 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000553/0.4073, allocations: 259.3 kB / 461.2 MB, free: 10.76 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.4075, allocations: 361.9 kB / 461.6 MB, free: 10.4 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001285/0.4088, allocations: 0.6909 MB / 462.3 MB, free: 9.711 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001583/0.4104, allocations: 1.07 MB / 463.3 MB, free: 8.484 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002903/0.4133, allocations: 1.864 MB / 465.2 MB, free: 6.461 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.32e-05/0.4133, allocations: 4 kB / 465.2 MB, free: 6.457 MB / 382.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004492/0.4178, allocations: 2.409 MB / 467.6 MB, free: 4.008 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.312e-05/0.4179, allocations: 12.25 kB / 467.6 MB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.211e-05/0.4179, allocations: 19.94 kB / 467.7 MB, free: 3.977 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.419, allocations: 427 kB / 468.1 MB, free: 3.547 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001248/0.4203, allocations: 331.5 kB / 468.4 MB, free: 3.223 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007776/0.4281, allocations: 7.016 MB / 475.4 MB, free: 11.79 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001498/0.4296, allocations: 107.8 kB / 475.5 MB, free: 11.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002035/0.4298, allocations: 59.98 kB / 475.6 MB, free: 11.62 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.001366/0.4312, allocations: 0.6847 MB / 476.3 MB, free: 10.93 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005634/0.4318, allocations: 162 kB / 476.4 MB, free: 10.77 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00422/0.436, allocations: 2.126 MB / 478.5 MB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.328e-05/0.436, allocations: 12 kB / 478.6 MB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/0.4361, allocations: 4 kB / 478.6 MB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.761e-05/0.4361, allocations: 15.97 kB / 478.6 MB, free: 8.562 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009261/0.4453, allocations: 4.56 MB / 483.1 MB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.4454, allocations: 4 kB / 483.1 MB, free: 3.871 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009602/0.4464, allocations: 215.7 kB / 483.3 MB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001238/0.4476, allocations: 451.2 kB / 483.8 MB, free: 3.207 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001323/0.4478, allocations: 31.98 kB / 483.8 MB, free: 3.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008673/0.4564, allocations: 8.627 MB / 492.4 MB, free: 9.988 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.045e-06/0.4565, allocations: 11.88 kB / 492.5 MB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005326/0.4618, allocations: 3.103 MB / 495.6 MB, free: 6.777 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.4629, allocations: 375.1 kB / 495.9 MB, free: 6.391 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004293/0.4633, allocations: 28 kB / 496 MB, free: 6.363 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001138/0.4645, allocations: 83.89 kB / 496 MB, free: 6.281 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000273/0.4648, allocations: 96.75 kB / 496.1 MB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001018/0.4649, allocations: 32 kB / 496.2 MB, free: 6.156 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001931/0.4668, allocations: 0.9886 MB / 497.2 MB, free: 5.168 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4668, allocations: 0 / 497.2 MB, free: 5.168 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001866/0.4687, allocations: 463.9 kB / 497.6 MB, free: 4.715 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.005752/0.4745, allocations: 3.741 MB / 0.4896 GB, free: 0.875 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.004038/0.4785, allocations: 2.235 MB / 0.4918 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.096e-06/0.4786, allocations: 4 kB / 0.4918 GB, free: 14.57 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002604/0.4812, allocations: 1.443 MB / 0.4932 GB, free: 13.07 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00244/0.4836, allocations: 405.3 kB / 0.4936 GB, free: 12.68 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03101/0.5147, allocations: 16.85 MB / 0.51 GB, free: 11.15 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002064/0.5168, allocations: 1.803 MB / 0.5118 GB, free: 9.312 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00134/0.5181, allocations: 365.5 kB / 0.5121 GB, free: 8.949 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001311/0.5195, allocations: 0.8195 MB / 0.5129 GB, free: 8.129 MB / 446.1 MB Notification: Performance of SimCode: time 9.02e-07/0.5195, allocations: 0 / 0.5129 GB, free: 8.129 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3552/0.8747, allocations: 42.32 MB / 0.5543 GB, free: 125.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 24.55/25.43, allocations: 10.52 kB / 0.5543 GB, free: 125.9 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