Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001279/0.001279, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001415/0.001415, allocations: 204.2 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.48/1.48, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_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_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001446/0.001446, allocations: 43.92 kB / 377.7 MB, free: 2.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2372/0.2386, allocations: 53.37 MB / 431.1 MB, free: 6.625 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01101/0.2496, allocations: 8.559 MB / 439.7 MB, free: 14.03 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005597/0.2552, allocations: 2.979 MB / 442.6 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000933/0.2561, allocations: 71.5 kB / 442.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001553/0.2577, allocations: 0.6676 MB / 443.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001963/0.2597, allocations: 0.8116 MB / 444.2 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007643/0.2604, allocations: 399.4 kB / 444.6 MB, free: 9.098 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002721/0.2631, allocations: 2.568 MB / 447.1 MB, free: 6.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001833/0.265, allocations: 1.296 MB / 448.4 MB, free: 5.16 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001732/0.2667, allocations: 1.23 MB / 449.7 MB, free: 3.926 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00223/0.2689, allocations: 1.541 MB / 451.2 MB, free: 2.379 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004299/0.2694, allocations: 316 kB / 451.5 MB, free: 2.07 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000803/0.2702, allocations: 423.8 kB / 451.9 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00107/0.2712, allocations: 0.9115 MB / 452.8 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001359/0.2726, allocations: 1.144 MB / 454 MB, free: 15.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004298/0.2769, allocations: 4.201 MB / 458.2 MB, free: 11.38 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.2769, allocations: 11.88 kB / 458.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2769, allocations: 0 / 458.2 MB, free: 11.37 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.102e-05/0.277, allocations: 0 / 458.2 MB, free: 11.37 MB / 366.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.006025/0.283, allocations: 2.904 MB / 461.1 MB, free: 8.414 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.986e-05/0.283, allocations: 8.031 kB / 461.1 MB, free: 8.406 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004002/0.2834, allocations: 316.2 kB / 461.4 MB, free: 8.086 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007903/0.2842, allocations: 311.2 kB / 461.7 MB, free: 7.781 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002931/0.2872, allocations: 1.471 MB / 463.2 MB, free: 6.27 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000138/0.2873, allocations: 164.1 kB / 463.4 MB, free: 6.105 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003387/0.2876, allocations: 208 kB / 463.6 MB, free: 5.902 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004727/0.2924, allocations: 2.9 MB / 466.5 MB, free: 2.891 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.662e-05/0.2924, allocations: 4 kB / 466.5 MB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001982/0.2926, allocations: 91.97 kB / 466.6 MB, free: 2.797 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001181/0.2927, allocations: 104.2 kB / 466.7 MB, free: 2.691 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004043/0.2968, allocations: 2.343 MB / 469 MB, free: 340 kB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01319/0.31, allocations: 7.704 MB / 476.7 MB, free: 8.383 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002229/0.3122, allocations: 1.168 MB / 477.9 MB, free: 7.207 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001724/0.3139, allocations: 0.9006 MB / 478.8 MB, free: 6.309 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002255/0.3142, allocations: 44.97 kB / 478.8 MB, free: 6.266 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.742e-05/0.3142, allocations: 51.5 kB / 478.9 MB, free: 6.203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 4.719e-06/0.3142, allocations: 7.922 kB / 478.9 MB, free: 6.195 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01304/0.3272, allocations: 5.727 MB / 484.6 MB, free: 444 kB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.836e-05/0.3273, allocations: 64.41 kB / 484.7 MB, free: 368 kB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002111/0.3294, allocations: 1.465 MB / 486.1 MB, free: 14.88 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.044e-05/0.3295, allocations: 49.64 kB / 486.2 MB, free: 14.83 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008509/0.3303, allocations: 1.063 MB / 487.2 MB, free: 13.75 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003832/0.3307, allocations: 424.4 kB / 487.7 MB, free: 13.34 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004275/0.3312, allocations: 259.5 kB / 487.9 MB, free: 13.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001921/0.3313, allocations: 365.9 kB / 488.3 MB, free: 12.71 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001182/0.3325, allocations: 0.6871 MB / 489 MB, free: 12.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001472/0.334, allocations: 1.07 MB / 490 MB, free: 10.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002727/0.3367, allocations: 1.864 MB / 491.9 MB, free: 8.773 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.3367, allocations: 8 kB / 491.9 MB, free: 8.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004367/0.3411, allocations: 2.343 MB / 494.2 MB, free: 6.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.06e-05/0.3411, allocations: 12 kB / 494.2 MB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.956e-05/0.3412, allocations: 19.81 kB / 494.3 MB, free: 6.371 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001024/0.3422, allocations: 417.8 kB / 494.7 MB, free: 5.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001212/0.3434, allocations: 327.5 kB / 495 MB, free: 5.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007343/0.3507, allocations: 6.699 MB / 0.4899 GB, free: 14.59 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001234/0.352, allocations: 95.84 kB / 0.49 GB, free: 14.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001132/0.3521, allocations: 60 kB / 0.4901 GB, free: 14.44 MB / 414.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.001144/0.3532, allocations: 0.7005 MB / 0.4908 GB, free: 13.73 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002999/0.3535, allocations: 170.9 kB / 0.4909 GB, free: 13.56 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00377/0.3573, allocations: 2.039 MB / 0.4929 GB, free: 11.49 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.129e-05/0.3573, allocations: 12 kB / 0.4929 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.225e-06/0.3573, allocations: 4 kB / 0.4929 GB, free: 11.48 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.3573, allocations: 11.97 kB / 0.4929 GB, free: 11.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00768/0.365, allocations: 4.211 MB / 0.4971 GB, free: 7.152 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.245e-06/0.365, allocations: 4 kB / 0.4971 GB, free: 7.148 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009152/0.3659, allocations: 207.7 kB / 0.4973 GB, free: 6.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001143/0.3671, allocations: 458.2 kB / 0.4977 GB, free: 6.488 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.114e-05/0.3672, allocations: 35.98 kB / 0.4977 GB, free: 6.453 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008601/0.3758, allocations: 8.157 MB / 0.5057 GB, free: 13.84 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.817e-06/0.3758, allocations: 11.88 kB / 0.5057 GB, free: 13.82 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005253/0.381, allocations: 3.025 MB / 0.5087 GB, free: 10.73 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009237/0.382, allocations: 306.9 kB / 0.509 GB, free: 10.43 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002393/0.3822, allocations: 31.98 kB / 0.509 GB, free: 10.39 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008737/0.3831, allocations: 87.84 kB / 0.5091 GB, free: 10.31 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000238/0.3833, allocations: 96.75 kB / 0.5092 GB, free: 10.21 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.689e-05/0.3834, allocations: 40 kB / 0.5092 GB, free: 10.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001533/0.3849, allocations: 0.9888 MB / 0.5102 GB, free: 9.188 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3849, allocations: 0 / 0.5102 GB, free: 9.188 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001658/0.3866, allocations: 463.9 kB / 0.5106 GB, free: 8.734 MB / 430.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.005568/0.3922, allocations: 3.67 MB / 0.5142 GB, free: 4.988 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.00371/0.3959, allocations: 2.087 MB / 0.5162 GB, free: 2.863 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.394e-06/0.3959, allocations: 4 kB / 0.5162 GB, free: 2.859 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002359/0.3982, allocations: 1.391 MB / 0.5176 GB, free: 1.414 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001953/0.4002, allocations: 425.5 kB / 0.518 GB, free: 1.008 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2066/0.6068, allocations: 16.77 MB / 0.5344 GB, free: 103.6 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001934/0.6087, allocations: 1.232 MB / 0.5356 GB, free: 103.4 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001339/0.6101, allocations: 365 kB / 0.5359 GB, free: 103.4 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009634/0.611, allocations: 0.8215 MB / 0.5367 GB, free: 103.4 MB / 446.1 MB Notification: Performance of SimCode: time 1.132e-06/0.611, allocations: 3.906 kB / 0.5367 GB, free: 103.4 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08812/0.6992, allocations: 45.5 MB / 0.5812 GB, free: 65.31 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.3/13, allocations: 19.86 kB / 0.5812 GB, free: 65.29 MB / 446.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.51188431700575]