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.001835/0.001835, allocations: 111.1 kB / 20.44 MB, free: 1.199 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.002843/0.002843, allocations: 207.1 kB / 23.73 MB, free: 4.414 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.529/1.529, allocations: 230.5 MB / 257.4 MB, free: 7.75 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.001915/0.001915, allocations: 71.89 kB / 377.8 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3003/0.3022, allocations: 53.4 MB / 431.2 MB, free: 6.473 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02652/0.3287, allocations: 19.35 MB / 450.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01565/0.3444, allocations: 6.383 MB / 456.9 MB, free: 12.64 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004404/0.3488, allocations: 178.9 kB / 457.1 MB, free: 12.46 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004334/0.3531, allocations: 1.502 MB / 458.6 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008239/0.3614, allocations: 2.128 MB / 460.7 MB, free: 8.809 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004032/0.3654, allocations: 1.317 MB / 462 MB, free: 7.496 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01039/0.3758, allocations: 6.583 MB / 468.6 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006579/0.3824, allocations: 3.011 MB / 471.6 MB, free: 13.79 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006557/0.3889, allocations: 3.096 MB / 474.7 MB, free: 10.69 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006548/0.3955, allocations: 3.498 MB / 478.2 MB, free: 7.18 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001508/0.397, allocations: 0.8125 MB / 479 MB, free: 6.367 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002429/0.3994, allocations: 1.105 MB / 480.1 MB, free: 5.262 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002243/0.4016, allocations: 2.049 MB / 482.2 MB, free: 3.207 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003935/0.4056, allocations: 2.824 MB / 485 MB, free: 380 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01299/0.4186, allocations: 10.92 MB / 495.9 MB, free: 5.414 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.4186, allocations: 3.938 kB / 495.9 MB, free: 5.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.4186, allocations: 7.938 kB / 495.9 MB, free: 5.402 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002703/0.4188, allocations: 0 / 495.9 MB, free: 5.402 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.01852/0.4374, allocations: 7.027 MB / 0.4912 GB, free: 14.3 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.573e-05/0.4374, allocations: 15.98 kB / 0.4912 GB, free: 14.29 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001128/0.4385, allocations: 0.729 MB / 0.4919 GB, free: 13.55 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004887/0.4434, allocations: 1.082 MB / 0.493 GB, free: 12.46 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008354/0.4518, allocations: 3.68 MB / 0.4965 GB, free: 8.715 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003831/0.4522, allocations: 414.5 kB / 0.4969 GB, free: 8.312 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001265/0.4534, allocations: 0.5156 MB / 0.4974 GB, free: 7.797 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01263/0.4661, allocations: 7.293 MB / 0.5046 GB, free: 384 kB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001209/0.4662, allocations: 11.95 kB / 0.5046 GB, free: 372 kB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004928/0.4667, allocations: 212 kB / 0.5048 GB, free: 160 kB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002958/0.467, allocations: 258.7 kB / 0.505 GB, free: 15.9 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01103/0.478, allocations: 5.952 MB / 0.5108 GB, free: 9.941 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03653/0.5145, allocations: 19.96 MB / 0.5303 GB, free: 5.438 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006986/0.5215, allocations: 3.717 MB / 0.534 GB, free: 1.906 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.1979/0.7194, allocations: 2.082 MB / 0.536 GB, free: 97.4 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01234/0.7317, allocations: 5.265 MB / 0.5411 GB, free: 95.97 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.443e-05/0.7318, allocations: 57.84 kB / 0.5412 GB, free: 95.91 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 6.362e-06/0.7318, allocations: 3.812 kB / 0.5412 GB, free: 95.91 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.01904/0.7508, allocations: 10.25 MB / 0.5512 GB, free: 92.42 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.7509, allocations: 76.75 kB / 0.5513 GB, free: 92.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003792/0.7546, allocations: 3.225 MB / 0.5544 GB, free: 89.79 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002019/0.7548, allocations: 69.7 kB / 0.5545 GB, free: 89.72 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001183/0.756, allocations: 2.58 MB / 0.557 GB, free: 87.74 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004563/0.7565, allocations: 0.8717 MB / 0.5579 GB, free: 86.97 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006828/0.7572, allocations: 0.5578 MB / 0.5584 GB, free: 86.45 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.904e-05/0.7572, allocations: 305.8 kB / 0.5587 GB, free: 86.16 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001724/0.7589, allocations: 1.333 MB / 0.56 GB, free: 84.96 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002014/0.7609, allocations: 2.371 MB / 0.5623 GB, free: 82.14 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003907/0.7649, allocations: 3.922 MB / 0.5662 GB, free: 77.76 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.406e-05/0.7649, allocations: 8 kB / 0.5662 GB, free: 77.75 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006149/0.771, allocations: 4.592 MB / 0.5706 GB, free: 73.09 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.169e-05/0.7711, allocations: 20 kB / 0.5707 GB, free: 73.07 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.389e-05/0.7711, allocations: 32 kB / 0.5707 GB, free: 73.04 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001034/0.7721, allocations: 0.5412 MB / 0.5712 GB, free: 72.47 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002334/0.7745, allocations: 0.7371 MB / 0.5719 GB, free: 71.73 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006492/0.781, allocations: 9.874 MB / 0.5816 GB, free: 61.33 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002777/0.7837, allocations: 191.8 kB / 0.5818 GB, free: 61.14 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002822/0.784, allocations: 140 kB / 0.5819 GB, free: 61.01 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.002358/0.7864, allocations: 1.574 MB / 0.5834 GB, free: 59.42 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007116/0.7871, allocations: 365.6 kB / 0.5838 GB, free: 59.06 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005747/0.7928, allocations: 3.83 MB / 0.5875 GB, free: 55.19 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.7928, allocations: 20 kB / 0.5876 GB, free: 55.17 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.163e-05/0.7929, allocations: 16 kB / 0.5876 GB, free: 55.15 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.927e-05/0.7929, allocations: 15.98 kB / 0.5876 GB, free: 55.14 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01171/0.8046, allocations: 8.226 MB / 0.5956 GB, free: 46.84 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.678e-06/0.8046, allocations: 4.594 kB / 0.5956 GB, free: 46.83 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/0.8062, allocations: 403.4 kB / 0.596 GB, free: 46.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001638/0.8078, allocations: 0.7553 MB / 0.5967 GB, free: 45.66 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001434/0.8079, allocations: 71.81 kB / 0.5968 GB, free: 45.59 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01075/0.8187, allocations: 15.96 MB / 0.6124 GB, free: 28.73 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.68e-06/0.8187, allocations: 12.08 kB / 0.6124 GB, free: 28.72 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007569/0.8263, allocations: 5.64 MB / 0.6179 GB, free: 22.97 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001711/0.828, allocations: 0.6342 MB / 0.6185 GB, free: 22.34 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004124/0.8284, allocations: 56 kB / 0.6186 GB, free: 22.28 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001534/0.8299, allocations: 139.9 kB / 0.6187 GB, free: 22.14 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003282/0.8303, allocations: 189.5 kB / 0.6189 GB, free: 21.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001294/0.8304, allocations: 75.97 kB / 0.619 GB, free: 21.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.002445/0.8328, allocations: 2.139 MB / 0.6211 GB, free: 19.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.8328, allocations: 0 / 0.6211 GB, free: 19.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.002769/0.8356, allocations: 1 MB / 0.622 GB, free: 18.76 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.00746/0.8431, allocations: 6.351 MB / 0.6282 GB, free: 12.3 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005114/0.8482, allocations: 3.871 MB / 0.632 GB, free: 8.367 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.655e-06/0.8482, allocations: 4 kB / 0.632 GB, free: 8.363 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003451/0.8516, allocations: 2.663 MB / 0.6346 GB, free: 5.602 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003884/0.8555, allocations: 0.982 MB / 0.6356 GB, free: 4.648 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05389/0.9094, allocations: 35.41 MB / 0.6702 GB, free: 15.89 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003544/0.9129, allocations: 2.914 MB / 0.673 GB, free: 12.93 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.002555/0.9155, allocations: 0.8074 MB / 0.6738 GB, free: 12.12 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002812/0.9183, allocations: 2.112 MB / 0.6759 GB, free: 10.01 MB / 494.1 MB Notification: Performance of SimCode: time 1.102e-06/0.9183, allocations: 0 / 0.6759 GB, free: 10.01 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3775/1.296, allocations: 93.84 MB / 0.7675 GB, free: 193.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 17/18.3, allocations: 14.42 kB / 0.7675 GB, free: 193.5 MB / 0.545 GB " [Timeout remaining time 642] (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: 28.27765854727477]