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.0007872/0.0007872, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008593/0.0008593, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9045/0.9045, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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 1.693e-06/1.693e-06, allocations: 0 / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.694e-05/1.864e-05, allocations: 7.062 kB / 324.5 MB, free: 15.87 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.01523/0.01525, allocations: 19.38 MB / 343.9 MB, free: 12.39 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.01146/0.0267, allocations: 6.391 MB / 350.3 MB, free: 5.98 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004103/0.03081, allocations: 178.9 kB / 350.5 MB, free: 5.805 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003517/0.03432, allocations: 1.509 MB / 352 MB, free: 4.285 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0061/0.04042, allocations: 2.189 MB / 354.2 MB, free: 2.082 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002644/0.04307, allocations: 1.328 MB / 355.5 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.007455/0.05052, allocations: 6.858 MB / 362.4 MB, free: 9.867 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003695/0.05422, allocations: 3.014 MB / 365.4 MB, free: 6.77 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005789/0.06001, allocations: 4.542 MB / 369.9 MB, free: 2.219 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00305/0.06306, allocations: 3.035 MB / 373 MB, free: 15.18 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008111/0.06387, allocations: 0.8164 MB / 373.8 MB, free: 14.36 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001542/0.06541, allocations: 1.113 MB / 374.9 MB, free: 13.25 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001434/0.06684, allocations: 2.096 MB / 377 MB, free: 11.14 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002071/0.06892, allocations: 2.409 MB / 379.4 MB, free: 8.73 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.008625/0.07754, allocations: 10.96 MB / 390.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.07755, allocations: 0 / 390.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.07755, allocations: 0 / 390.4 MB, free: 13.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001637/0.07771, allocations: 0 / 390.4 MB, free: 13.74 MB / 362.7 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.01014/0.08785, allocations: 6.976 MB / 397.3 MB, free: 6.691 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.556e-05/0.08789, allocations: 11.98 kB / 397.3 MB, free: 6.68 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006848/0.08858, allocations: 0.7251 MB / 398.1 MB, free: 5.945 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00252/0.0911, allocations: 1.094 MB / 399.2 MB, free: 4.848 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004359/0.09546, allocations: 3.68 MB / 402.8 MB, free: 1.098 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002011/0.09566, allocations: 403.1 kB / 403.2 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000518/0.09617, allocations: 0.5198 MB / 403.8 MB, free: 188 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008408/0.1046, allocations: 7.293 MB / 411.1 MB, free: 8.762 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.257e-05/0.1047, allocations: 11.89 kB / 411.1 MB, free: 8.75 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003889/0.1051, allocations: 220 kB / 411.3 MB, free: 8.535 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004112/0.1055, allocations: 270.6 kB / 411.5 MB, free: 8.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007079/0.1125, allocations: 5.937 MB / 417.5 MB, free: 2.324 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0232/0.1357, allocations: 19.95 MB / 437.4 MB, free: 13.84 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004432/0.1402, allocations: 3.733 MB / 441.2 MB, free: 10.29 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00218/0.1424, allocations: 2.112 MB / 443.3 MB, free: 8.172 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006737/0.1491, allocations: 5.264 MB / 448.5 MB, free: 2.875 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.1491, allocations: 56.56 kB / 448.6 MB, free: 2.812 MB / 410.7 MB Notification: Performance of pre-optimization done (n=220): time 3.807e-06/0.1491, allocations: 0 / 448.6 MB, free: 2.812 MB / 410.7 MB Notification: Performance of matching and sorting (n=240): time 0.1758/0.325, allocations: 10.24 MB / 458.8 MB, free: 109.1 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.687e-05/0.325, allocations: 77.53 kB / 458.9 MB, free: 109 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002718/0.3277, allocations: 3.236 MB / 462.1 MB, free: 107.8 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 9.519e-05/0.3278, allocations: 73.61 kB / 462.2 MB, free: 107.7 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007682/0.3286, allocations: 2.571 MB / 464.8 MB, free: 106.1 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002956/0.3289, allocations: 0.858 MB / 465.6 MB, free: 105.5 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004615/0.3293, allocations: 0.5548 MB / 466.2 MB, free: 105.2 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 2.387e-05/0.3293, allocations: 304.8 kB / 466.5 MB, free: 104.9 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001187/0.3305, allocations: 1.338 MB / 467.8 MB, free: 104.2 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001411/0.3319, allocations: 2.363 MB / 470.2 MB, free: 101.6 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002783/0.3347, allocations: 3.927 MB / 474.1 MB, free: 97.55 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.708e-06/0.3347, allocations: 8 kB / 474.1 MB, free: 97.55 MB / 410.7 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.003994/0.3387, allocations: 4.588 MB / 478.7 MB, free: 93.18 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.3388, allocations: 16 kB / 478.7 MB, free: 93.17 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.198e-05/0.3388, allocations: 32 kB / 478.8 MB, free: 93.14 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006637/0.3394, allocations: 0.5457 MB / 479.3 MB, free: 92.57 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001283/0.3407, allocations: 0.741 MB / 480 MB, free: 91.83 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004386/0.3451, allocations: 9.855 MB / 489.9 MB, free: 81.44 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001229/0.3463, allocations: 190.7 kB / 490.1 MB, free: 81.25 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001273/0.3465, allocations: 147.9 kB / 490.2 MB, free: 81.11 MB / 410.7 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.001731/0.3482, allocations: 1.568 MB / 491.8 MB, free: 79.53 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002764/0.3485, allocations: 365.7 kB / 492.2 MB, free: 79.17 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003569/0.352, allocations: 3.834 MB / 496 MB, free: 75.29 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.3521, allocations: 24 kB / 496 MB, free: 75.27 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.759e-06/0.3521, allocations: 9.688 kB / 496 MB, free: 75.26 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.259e-05/0.3521, allocations: 15.95 kB / 496 MB, free: 75.25 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007543/0.3596, allocations: 8.217 MB / 0.4924 GB, free: 66.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.3596, allocations: 7.938 kB / 0.4924 GB, free: 66.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008272/0.3605, allocations: 408 kB / 0.4928 GB, free: 66.55 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009601/0.3614, allocations: 0.7539 MB / 0.4936 GB, free: 65.78 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001114/0.3615, allocations: 67.97 kB / 0.4936 GB, free: 65.71 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006668/0.3682, allocations: 15.96 MB / 0.5092 GB, free: 48.88 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.846e-06/0.3682, allocations: 4 kB / 0.5092 GB, free: 48.87 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005054/0.3733, allocations: 5.628 MB / 0.5147 GB, free: 43.14 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009288/0.3742, allocations: 0.6458 MB / 0.5154 GB, free: 42.49 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002538/0.3744, allocations: 55.98 kB / 0.5154 GB, free: 42.43 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000823/0.3753, allocations: 139.9 kB / 0.5155 GB, free: 42.3 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002681/0.3755, allocations: 189.5 kB / 0.5157 GB, free: 42.11 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.472e-05/0.3756, allocations: 71.98 kB / 0.5158 GB, free: 42.04 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001906/0.3775, allocations: 2.139 MB / 0.5179 GB, free: 39.91 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3775, allocations: 0 / 0.5179 GB, free: 39.91 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002223/0.3797, allocations: 0.9921 MB / 0.5189 GB, free: 38.92 MB / 410.7 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.005145/0.3849, allocations: 6.349 MB / 0.5251 GB, free: 32.46 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.003607/0.3885, allocations: 3.864 MB / 0.5288 GB, free: 28.54 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.458e-06/0.3885, allocations: 4 kB / 0.5288 GB, free: 28.54 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002028/0.3905, allocations: 2.67 MB / 0.5314 GB, free: 25.77 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002109/0.3926, allocations: 0.9734 MB / 0.5324 GB, free: 24.82 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04185/0.4345, allocations: 35.33 MB / 0.5669 GB, free: 4.141 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002423/0.4369, allocations: 2.906 MB / 0.5697 GB, free: 1.195 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001799/0.4387, allocations: 0.8074 MB / 0.5705 GB, free: 396 kB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00178/0.4405, allocations: 2.117 MB / 0.5726 GB, free: 14.27 MB / 442.7 MB Notification: Performance of SimCode: time 1.072e-06/0.4405, allocations: 0 / 0.5726 GB, free: 14.27 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.281/0.7215, allocations: 93.66 MB / 0.6641 GB, free: 126.1 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.4/11.12, allocations: 0 / 0.6641 GB, free: 126.1 MB / 474.7 MB " [Timeout remaining time 649] (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/jenkins/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/jenkins/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 15.939690075814724]