Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_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 3.2.3+maint.om/package.mo", uses=false) 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 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: translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=30000,variableFilter="time|loadInertiaE.phi|loadInertiaE.w|loadInertiaM.phi|loadInertiaM.w|smpmE.is.1.|smpmE.is.2.|smpmE.idq_dr.1.|smpmE.idq_rr.2.|smpmE.idq_sr.1.|smpmE.idq_sr.2.|smpmM.is.1.|smpmM.is.2.|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.1..Phi.re|smpmM.stator.electroMagneticConverter.singlePhaseElectroMagneticConverter.2..Phi.im|smpmM.stator.strayReluctance.port_p.Phi.im|smpmM.stator.strayReluctance.port_p.Phi.re|vfController.x",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001506/0.001512, allocations: 109.4 kB / 18.4 MB, free: 4.699 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.001627/0.001627, allocations: 187.1 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.37/1.37, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001351/0.00135, allocations: 47.94 kB / 329.2 MB, free: 3.293 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0864/0.08776, allocations: 46.62 MB / 375.8 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.2109/0.2987, allocations: 21.68 MB / 397.5 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01573/0.3145, allocations: 6.432 MB / 404 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005624/0.3202, allocations: 120.5 kB / 404.1 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00577/0.326, allocations: 1.481 MB / 405.5 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008773/0.3348, allocations: 2.043 MB / 407.6 MB, free: 8.898 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004793/0.3396, allocations: 1.302 MB / 408.9 MB, free: 8.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0109/0.3506, allocations: 6.534 MB / 415.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007762/0.3584, allocations: 5.505 MB / 420.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00613/0.3645, allocations: 3 MB / 423.9 MB, free: 15.42 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00704/0.3716, allocations: 3.569 MB / 427.5 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002654/0.3743, allocations: 0.8164 MB / 428.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004238/0.3786, allocations: 1.097 MB / 429.4 MB, free: 9.922 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002997/0.3816, allocations: 2.018 MB / 431.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00687/0.3885, allocations: 3.539 MB / 435 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01378/0.4023, allocations: 10.79 MB / 445.8 MB, free: 9.512 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.823e-06/0.4024, allocations: 3.938 kB / 445.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4024, allocations: 0 / 445.8 MB, free: 9.508 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0003323/0.4027, allocations: 0 / 445.8 MB, free: 9.508 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.01859/0.4213, allocations: 6.914 MB / 452.7 MB, free: 2.512 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.4214, allocations: 12.03 kB / 452.7 MB, free: 2.5 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00552/0.4269, allocations: 1.063 MB / 453.8 MB, free: 1.43 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00701/0.434, allocations: 3.524 MB / 457.3 MB, free: 13.83 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003555/0.4344, allocations: 403.3 kB / 457.7 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001559/0.4359, allocations: 0.5232 MB / 458.2 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01464/0.4506, allocations: 7.052 MB / 465.3 MB, free: 5.785 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001432/0.4508, allocations: 11.89 kB / 465.3 MB, free: 5.773 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005903/0.4514, allocations: 220 kB / 465.5 MB, free: 5.559 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002385/0.4516, allocations: 266.6 kB / 465.7 MB, free: 5.297 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01135/0.463, allocations: 5.929 MB / 471.7 MB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03589/0.4989, allocations: 22.17 MB / 493.8 MB, free: 8.609 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008034/0.507, allocations: 8.273 MB / 0.4903 GB, free: 15.45 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003321/0.5103, allocations: 2.167 MB / 0.4925 GB, free: 13.27 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01119/0.5216, allocations: 6.175 MB / 0.4985 GB, free: 6.969 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.029e-05/0.5217, allocations: 60.56 kB / 0.4986 GB, free: 6.898 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.599e-06/0.5217, allocations: 0 / 0.4986 GB, free: 6.898 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.02284/0.5445, allocations: 11.14 MB / 0.5094 GB, free: 11.49 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.957e-05/0.5446, allocations: 77.41 kB / 0.5095 GB, free: 11.41 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004883/0.5495, allocations: 3.152 MB / 0.5126 GB, free: 8.254 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004367/0.55, allocations: 69.7 kB / 0.5127 GB, free: 8.18 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001656/0.5516, allocations: 2.494 MB / 0.5151 GB, free: 5.66 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008637/0.5525, allocations: 0.828 MB / 0.5159 GB, free: 4.82 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008405/0.5534, allocations: 0.5536 MB / 0.5164 GB, free: 4.258 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 9.708e-05/0.5535, allocations: 309.1 kB / 0.5167 GB, free: 3.953 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002125/0.5556, allocations: 1.334 MB / 0.518 GB, free: 2.617 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002774/0.5584, allocations: 2.346 MB / 0.5203 GB, free: 15.82 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005117/0.5635, allocations: 3.928 MB / 0.5242 GB, free: 11.42 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-05/0.5636, allocations: 8 kB / 0.5242 GB, free: 11.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007561/0.5711, allocations: 4.697 MB / 0.5288 GB, free: 6.605 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.413e-05/0.5712, allocations: 16.66 kB / 0.5288 GB, free: 6.59 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-05/0.5712, allocations: 36 kB / 0.5288 GB, free: 6.555 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001175/0.5724, allocations: 0.5296 MB / 0.5293 GB, free: 6.004 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00271/0.5752, allocations: 0.7448 MB / 0.53 GB, free: 5.258 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008469/0.5836, allocations: 10.28 MB / 0.5401 GB, free: 10.28 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00282/0.5865, allocations: 183.8 kB / 0.5403 GB, free: 10.1 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002926/0.5868, allocations: 144 kB / 0.5404 GB, free: 9.957 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00275/0.5896, allocations: 1.578 MB / 0.5419 GB, free: 8.367 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007238/0.5903, allocations: 348 kB / 0.5423 GB, free: 8.023 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006694/0.597, allocations: 4.045 MB / 0.5462 GB, free: 3.879 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.143e-05/0.5971, allocations: 27.94 kB / 0.5463 GB, free: 3.852 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.471e-05/0.5971, allocations: 8 kB / 0.5463 GB, free: 3.844 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.42e-05/0.5971, allocations: 11.95 kB / 0.5463 GB, free: 3.832 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2386/0.8357, allocations: 8.957 MB / 0.555 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-05/0.8358, allocations: 7.094 kB / 0.555 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001902/0.8377, allocations: 409.2 kB / 0.5554 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002027/0.8398, allocations: 0.7303 MB / 0.5561 GB, free: 145 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002755/0.8401, allocations: 66.75 kB / 0.5562 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0134/0.8535, allocations: 16.73 MB / 0.5725 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.8535, allocations: 9.969 kB / 0.5725 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01058/0.8641, allocations: 5.841 MB / 0.5782 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002306/0.8665, allocations: 0.6981 MB / 0.5789 GB, free: 128.1 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000836/0.8673, allocations: 54.48 kB / 0.579 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002056/0.8694, allocations: 145 kB / 0.5791 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005464/0.8699, allocations: 188.9 kB / 0.5793 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001734/0.8701, allocations: 75.02 kB / 0.5794 GB, free: 127.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.004564/0.8747, allocations: 2.124 MB / 0.5814 GB, free: 127.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.8747, allocations: 1.094 kB / 0.5814 GB, free: 127.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005325/0.88, allocations: 0.9943 MB / 0.5824 GB, free: 127.1 MB / 478.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0008362/0.8809, allocations: 248.8 kB / 0.5826 GB, free: 126.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006617/0.8875, allocations: 4.144 MB / 0.5867 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 1.074e-05/0.8876, allocations: 5.391 kB / 0.5867 GB, free: 125 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004116/0.8917, allocations: 2.743 MB / 0.5894 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004967/0.8967, allocations: 0.9503 MB / 0.5903 GB, free: 123.1 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01657/0.9133, allocations: 9.941 MB / 0.6 GB, free: 117 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002719/0.9161, allocations: 3.322 MB / 0.6033 GB, free: 114.5 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001185/0.9173, allocations: 270.9 kB / 0.6035 GB, free: 114.2 MB / 478.1 MB Notification: Performance of SimCode: time 1.833e-06/0.9173, allocations: 0 / 0.6035 GB, free: 114.2 MB / 478.1 MB Notification: Performance of Templates: time 0.4297/1.347, allocations: 265.7 MB / 0.863 GB, free: 70.42 MB / 0.4981 GB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches