Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0007908/0.0007908, allocations: 169.8 kB / 16.72 MB, free: 5.051 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.128/1.128, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0006825/0.0006825, allocations: 90.34 kB / 271.2 MB, free: 8.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002627/0.0002627, allocations: 8 kB / 327.6 MB, free: 15.77 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1829/0.1832, allocations: 47.56 MB / 375.2 MB, free: 45.45 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter): time 0.006748/0.19, allocations: 8.463 MB / 383.7 MB, free: 38.84 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004285/0.1943, allocations: 2.962 MB / 386.6 MB, free: 36.39 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001055/0.1953, allocations: 48.53 kB / 386.7 MB, free: 36.37 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001282/0.1966, allocations: 0.534 MB / 387.2 MB, free: 35.98 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001737/0.1984, allocations: 0.6657 MB / 387.9 MB, free: 35.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006621/0.1991, allocations: 241.4 kB / 388.1 MB, free: 35.24 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002209/0.2013, allocations: 2.645 MB / 390.7 MB, free: 33.11 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001552/0.2028, allocations: 1.911 MB / 392.7 MB, free: 31.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008163/0.2037, allocations: 0.8832 MB / 393.5 MB, free: 30.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009522/0.2046, allocations: 1.218 MB / 394.8 MB, free: 29.03 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001944/0.2048, allocations: 136 kB / 394.9 MB, free: 28.89 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004524/0.2053, allocations: 243.7 kB / 395.1 MB, free: 28.66 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004565/0.2058, allocations: 0.6853 MB / 395.8 MB, free: 27.97 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007074/0.2065, allocations: 1.145 MB / 397 MB, free: 26.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.2082, allocations: 3.327 MB / 400.3 MB, free: 23.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.2082, allocations: 4 kB / 400.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2082, allocations: 0 / 400.3 MB, free: 23.47 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.196e-05/0.2082, allocations: 0 / 400.3 MB, free: 23.47 MB / 298.7 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.003453/0.2117, allocations: 2.468 MB / 402.8 MB, free: 20.94 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.399e-05/0.2117, allocations: 8.031 kB / 402.8 MB, free: 20.93 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002881/0.212, allocations: 312.2 kB / 403.1 MB, free: 20.62 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004925/0.2125, allocations: 289.7 kB / 403.3 MB, free: 20.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001665/0.2142, allocations: 1.437 MB / 404.8 MB, free: 18.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000103/0.2143, allocations: 164.3 kB / 404.9 MB, free: 18.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002277/0.2145, allocations: 215.9 kB / 405.2 MB, free: 18.46 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003439/0.218, allocations: 2.788 MB / 407.9 MB, free: 15.59 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.736e-05/0.218, allocations: 7.984 kB / 408 MB, free: 15.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001627/0.2182, allocations: 84 kB / 408 MB, free: 15.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.617e-05/0.2183, allocations: 108.2 kB / 408.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003014/0.2213, allocations: 2.355 MB / 410.5 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009148/0.2305, allocations: 8.639 MB / 419.1 MB, free: 4.129 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001779/0.2323, allocations: 1.726 MB / 420.9 MB, free: 2.285 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001321/0.2336, allocations: 0.9762 MB / 421.8 MB, free: 1.305 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002232/0.2338, allocations: 211.2 kB / 422 MB, free: 1.059 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.2339, allocations: 47.5 kB / 422.1 MB, free: 1.004 MB / 298.7 MB Notification: Performance of pre-optimization done (n=101): time 2.294e-06/0.2339, allocations: 0 / 422.1 MB, free: 1.004 MB / 298.7 MB Notification: Performance of matching and sorting (n=116): time 0.01157/0.2455, allocations: 6.198 MB / 428.3 MB, free: 10.66 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.926e-05/0.2455, allocations: 68.41 kB / 428.4 MB, free: 10.58 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/0.2473, allocations: 1.425 MB / 429.8 MB, free: 9.141 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 7.861e-05/0.2474, allocations: 45.7 kB / 429.8 MB, free: 9.09 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000678/0.248, allocations: 1.041 MB / 430.9 MB, free: 8.035 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000285/0.2483, allocations: 406.1 kB / 431.3 MB, free: 7.633 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.202e-05/0.2484, allocations: 24 kB / 431.3 MB, free: 7.609 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001368/0.2485, allocations: 369.8 kB / 431.6 MB, free: 7.242 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001051/0.2496, allocations: 0.691 MB / 432.3 MB, free: 6.551 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001294/0.2509, allocations: 1.078 MB / 433.4 MB, free: 5.309 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002431/0.2534, allocations: 1.871 MB / 435.3 MB, free: 3.277 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.218e-06/0.2534, allocations: 4 kB / 435.3 MB, free: 3.273 MB / 314.7 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.003612/0.257, allocations: 2.418 MB / 437.7 MB, free: 0.8164 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.257, allocations: 8 kB / 437.7 MB, free: 0.8086 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.654e-05/0.257, allocations: 19.88 kB / 437.7 MB, free: 0.7891 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009042/0.258, allocations: 413.5 kB / 438.1 MB, free: 384 kB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00109/0.2591, allocations: 335.5 kB / 438.5 MB, free: 48 kB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006001/0.2651, allocations: 6.462 MB / 444.9 MB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009737/0.2661, allocations: 107.9 kB / 445 MB, free: 9.078 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.353e-05/0.2662, allocations: 55.98 kB / 445.1 MB, free: 9.023 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * 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 (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009743/0.2671, allocations: 0.6925 MB / 445.8 MB, free: 8.32 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002189/0.2674, allocations: 162 kB / 445.9 MB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003361/0.2707, allocations: 2.138 MB / 448.1 MB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.083e-05/0.2708, allocations: 16 kB / 448.1 MB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.783e-06/0.2708, allocations: 4 kB / 448.1 MB, free: 5.949 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.127e-05/0.2708, allocations: 7.922 kB / 448.1 MB, free: 5.941 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00665/0.2774, allocations: 4.605 MB / 452.7 MB, free: 1.199 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.69e-06/0.2775, allocations: 4 kB / 452.7 MB, free: 1.195 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008861/0.2784, allocations: 216.2 kB / 452.9 MB, free: 0.9844 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001064/0.2794, allocations: 450.9 kB / 453.4 MB, free: 0.5312 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.89e-05/0.2795, allocations: 35.98 kB / 453.4 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007001/0.2865, allocations: 7.926 MB / 461.3 MB, free: 8.043 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.2866, allocations: 4 kB / 461.3 MB, free: 8.039 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00458/0.2911, allocations: 3.128 MB / 464.5 MB, free: 4.812 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006746/0.2918, allocations: 383 kB / 464.8 MB, free: 4.418 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001903/0.292, allocations: 35.98 kB / 464.9 MB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008139/0.2929, allocations: 87.91 kB / 465 MB, free: 4.297 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002557/0.2931, allocations: 100.8 kB / 465.1 MB, free: 4.195 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.331e-05/0.2932, allocations: 39.98 kB / 465.1 MB, free: 4.156 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001347/0.2946, allocations: 0.973 MB / 466.1 MB, free: 3.184 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2946, allocations: 4 kB / 466.1 MB, free: 3.18 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001388/0.296, allocations: 452 kB / 466.5 MB, free: 2.738 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (103): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(3,100.0%) 11,(1,100.0%) 6,(1,100.0%) 1,(2,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004856/0.3008, allocations: 3.768 MB / 470.3 MB, free: 14.87 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003252/0.3041, allocations: 2.226 MB / 472.5 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.729e-06/0.3041, allocations: 0 / 472.5 MB, free: 12.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002115/0.3062, allocations: 1.446 MB / 473.9 MB, free: 11.08 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002313/0.3086, allocations: 391.1 kB / 474.3 MB, free: 10.7 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02073/0.3293, allocations: 13.54 MB / 487.9 MB, free: 12.5 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001439/0.3308, allocations: 1.788 MB / 489.7 MB, free: 10.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001065/0.3319, allocations: 0.8233 MB / 490.5 MB, free: 9.859 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.3319, allocations: 0 / 490.5 MB, free: 9.859 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 5.843/6.175, allocations: 75.28 MB / 0.5525 GB, free: 84.2 MB / 394.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Machines_Examples_SynchronousInductionMachines_SMR_Inverter.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/SynchronousInductionMachines/SMR_Inverter/SMR_Inverter.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches