Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001874/0.001874, allocations: 112.5 kB / 20.43 MB, free: 1.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002043/0.002043, allocations: 212.3 kB / 23.74 MB, free: 4.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.501/1.501, allocations: 230.5 MB / 257.4 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 67.89 kB / 377.8 MB, free: 3.004 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2504/0.2523, allocations: 53.4 MB / 431.2 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02634/0.2787, allocations: 22.54 MB / 453.7 MB, free: 64 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01393/0.2926, allocations: 6.683 MB / 460.4 MB, free: 9.359 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004523/0.2971, allocations: 178.9 kB / 460.6 MB, free: 9.184 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005308/0.3024, allocations: 1.584 MB / 462.2 MB, free: 7.59 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007964/0.3104, allocations: 2.151 MB / 464.3 MB, free: 5.426 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004597/0.315, allocations: 1.363 MB / 465.7 MB, free: 4.066 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01057/0.3256, allocations: 6.591 MB / 472.3 MB, free: 13.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007578/0.3332, allocations: 3.144 MB / 475.4 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005581/0.3387, allocations: 3.08 MB / 478.5 MB, free: 7.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006656/0.3454, allocations: 3.752 MB / 482.3 MB, free: 3.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00249/0.3479, allocations: 0.8164 MB / 483.1 MB, free: 2.555 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003816/0.3517, allocations: 1.132 MB / 484.2 MB, free: 1.422 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003498/0.3552, allocations: 2.057 MB / 486.3 MB, free: 15.36 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007319/0.3625, allocations: 3.551 MB / 489.8 MB, free: 11.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01695/0.3795, allocations: 10.87 MB / 0.489 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.254e-06/0.3795, allocations: 0 / 0.489 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.475e-06/0.3795, allocations: 0 / 0.489 GB, free: 0.8867 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003419/0.3798, allocations: 4 kB / 0.489 GB, free: 0.8828 MB / 398.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.02196/0.4018, allocations: 7.047 MB / 0.4958 GB, free: 9.762 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.897e-05/0.4018, allocations: 8.031 kB / 0.4959 GB, free: 9.754 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001752/0.4036, allocations: 0.7368 MB / 0.4966 GB, free: 9.008 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005235/0.4088, allocations: 1.078 MB / 0.4976 GB, free: 7.926 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008702/0.4175, allocations: 3.696 MB / 0.5012 GB, free: 4.164 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003644/0.4179, allocations: 406.9 kB / 0.5016 GB, free: 3.766 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0011/0.419, allocations: 0.5312 MB / 0.5021 GB, free: 3.234 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01392/0.4329, allocations: 7.059 MB / 0.509 GB, free: 12.1 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001262/0.433, allocations: 11.94 kB / 0.5091 GB, free: 12.09 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005232/0.4336, allocations: 224 kB / 0.5093 GB, free: 11.87 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002788/0.4338, allocations: 258.6 kB / 0.5095 GB, free: 11.62 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01189/0.4457, allocations: 5.952 MB / 0.5153 GB, free: 5.656 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3162/0.7619, allocations: 21.82 MB / 0.5366 GB, free: 90 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007854/0.7698, allocations: 3.742 MB / 0.5403 GB, free: 89.89 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003912/0.7737, allocations: 2.089 MB / 0.5423 GB, free: 89.85 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01138/0.785, allocations: 5.827 MB / 0.548 GB, free: 87.59 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.114e-05/0.7851, allocations: 56.31 kB / 0.5481 GB, free: 87.53 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 4.909e-06/0.7851, allocations: 0 / 0.5481 GB, free: 87.53 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.02075/0.8059, allocations: 10.25 MB / 0.5581 GB, free: 83.93 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.905e-05/0.8059, allocations: 75.66 kB / 0.5582 GB, free: 83.86 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006015/0.8119, allocations: 3.17 MB / 0.5613 GB, free: 82.23 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001617/0.8121, allocations: 68.92 kB / 0.5613 GB, free: 82.16 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001656/0.8137, allocations: 2.581 MB / 0.5638 GB, free: 80.23 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006131/0.8143, allocations: 0.8697 MB / 0.5647 GB, free: 79.5 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001048/0.8154, allocations: 0.5597 MB / 0.5652 GB, free: 79.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.253e-05/0.8155, allocations: 309 kB / 0.5655 GB, free: 78.87 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002003/0.8175, allocations: 1.329 MB / 0.5668 GB, free: 77.88 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002451/0.8199, allocations: 2.343 MB / 0.5691 GB, free: 75.09 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00468/0.8246, allocations: 3.92 MB / 0.5729 GB, free: 70.7 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.229e-05/0.8246, allocations: 8 kB / 0.573 GB, free: 70.69 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007259/0.8319, allocations: 4.588 MB / 0.5774 GB, free: 66.03 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.414e-05/0.8319, allocations: 20 kB / 0.5775 GB, free: 66.01 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.386e-05/0.832, allocations: 32 kB / 0.5775 GB, free: 65.98 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001206/0.8332, allocations: 0.5488 MB / 0.578 GB, free: 65.41 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002505/0.8357, allocations: 0.7448 MB / 0.5787 GB, free: 64.66 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007528/0.8432, allocations: 9.925 MB / 0.5884 GB, free: 54.19 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00335/0.8466, allocations: 183.8 kB / 0.5886 GB, free: 54.01 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000391/0.847, allocations: 144.1 kB / 0.5888 GB, free: 53.87 MB / 446.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 (377): * Single equations (assignments): 370 * 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,6,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.003523/0.8505, allocations: 1.574 MB / 0.5903 GB, free: 52.28 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001049/0.8516, allocations: 365.7 kB / 0.5906 GB, free: 51.92 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006772/0.8583, allocations: 3.832 MB / 0.5944 GB, free: 48.05 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.797e-05/0.8583, allocations: 27.98 kB / 0.5944 GB, free: 48.02 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.082e-05/0.8584, allocations: 8 kB / 0.5944 GB, free: 48.01 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.296e-05/0.8584, allocations: 11.95 kB / 0.5944 GB, free: 48 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01717/0.8756, allocations: 8.731 MB / 0.603 GB, free: 39.19 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.5e-05/0.8756, allocations: 8 kB / 0.603 GB, free: 39.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001611/0.8772, allocations: 407.9 kB / 0.6033 GB, free: 38.78 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001749/0.879, allocations: 0.7527 MB / 0.6041 GB, free: 38 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001962/0.8791, allocations: 67.97 kB / 0.6041 GB, free: 37.94 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01188/0.891, allocations: 16.07 MB / 0.6198 GB, free: 20.97 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/0.891, allocations: 11.94 kB / 0.6199 GB, free: 20.96 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009127/0.9002, allocations: 5.635 MB / 0.6254 GB, free: 15.22 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002325/0.9025, allocations: 0.6458 MB / 0.626 GB, free: 14.57 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001056/0.9035, allocations: 59.98 kB / 0.626 GB, free: 14.52 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002439/0.906, allocations: 139.8 kB / 0.6262 GB, free: 14.38 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004714/0.9065, allocations: 197.5 kB / 0.6264 GB, free: 14.18 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001816/0.9066, allocations: 67.98 kB / 0.6264 GB, free: 14.12 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.004158/0.9108, allocations: 2.139 MB / 0.6285 GB, free: 11.99 MB / 446.1 MB Notification: Performance of sort global known variables: time 1e-07/0.9108, allocations: 0 / 0.6285 GB, free: 11.99 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004418/0.9152, allocations: 0.996 MB / 0.6295 GB, free: 10.99 MB / 446.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 (198): * Single equations (assignments): 190 * 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,6,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.008714/0.9239, allocations: 6.36 MB / 0.6357 GB, free: 4.52 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.006136/0.9301, allocations: 3.876 MB / 0.6395 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.173e-05/0.9301, allocations: 0 / 0.6395 GB, free: 0.5781 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004574/0.9346, allocations: 2.665 MB / 0.6421 GB, free: 13.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006648/0.9413, allocations: 0.9712 MB / 0.643 GB, free: 12.87 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08147/1.023, allocations: 35.43 MB / 0.6776 GB, free: 8.094 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005909/1.029, allocations: 3.427 MB / 0.681 GB, free: 4.633 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.004191/1.033, allocations: 0.8035 MB / 0.6818 GB, free: 3.828 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004303/1.037, allocations: 2.112 MB / 0.6838 GB, free: 1.715 MB / 494.1 MB Notification: Performance of SimCode: time 1.173e-06/1.037, allocations: 0 / 0.6838 GB, free: 1.715 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4676/1.505, allocations: 91.84 MB / 0.7735 GB, free: 186.7 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.82/21.33, allocations: 8.047 kB / 0.7735 GB, free: 186.7 MB / 0.545 GB " [Timeout remaining time 639] (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 657] Reference file matches [Calling sys.exit(0), Time elapsed: 29.01150175696239]