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.001342/0.001342, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001441/0.001441, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.487/1.487, allocations: 230.5 MB / 258.2 MB, free: 8.035 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 63.89 kB / 378.6 MB, free: 2.992 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2957/0.2975, allocations: 53.4 MB / 432 MB, free: 6.688 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02561/0.3231, allocations: 22.54 MB / 454.5 MB, free: 52 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01539/0.3385, allocations: 6.686 MB / 461.2 MB, free: 9.348 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004943/0.3434, allocations: 178.9 kB / 461.4 MB, free: 9.172 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005093/0.3485, allocations: 1.58 MB / 463 MB, free: 7.582 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008495/0.357, allocations: 2.151 MB / 465.1 MB, free: 5.418 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004322/0.3613, allocations: 1.363 MB / 466.5 MB, free: 4.059 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.01059/0.3719, allocations: 6.591 MB / 473.1 MB, free: 13.44 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006563/0.3785, allocations: 3.143 MB / 476.2 MB, free: 10.21 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005088/0.3836, allocations: 3.084 MB / 479.3 MB, free: 7.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006324/0.3899, allocations: 3.744 MB / 483.1 MB, free: 3.363 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001731/0.3916, allocations: 0.8164 MB / 483.9 MB, free: 2.547 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003021/0.3947, allocations: 1.136 MB / 485 MB, free: 1.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002253/0.3969, allocations: 2.061 MB / 487.1 MB, free: 15.34 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005763/0.4027, allocations: 3.543 MB / 490.6 MB, free: 11.79 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01526/0.4179, allocations: 10.87 MB / 0.4897 GB, free: 0.875 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.4179, allocations: 0 / 0.4897 GB, free: 0.875 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4179, allocations: 0 / 0.4897 GB, free: 0.875 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.000353/0.4183, allocations: 4 kB / 0.4897 GB, free: 0.8711 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.01993/0.4382, allocations: 7.046 MB / 0.4966 GB, free: 9.754 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.4383, allocations: 8.031 kB / 0.4966 GB, free: 9.746 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002319/0.4385, allocations: 143 kB / 0.4968 GB, free: 9.605 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00157/0.4401, allocations: 0.729 MB / 0.4975 GB, free: 8.867 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005545/0.4456, allocations: 1.086 MB / 0.4985 GB, free: 7.777 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009566/0.4552, allocations: 3.696 MB / 0.5021 GB, free: 4.016 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004011/0.4556, allocations: 414.7 kB / 0.5025 GB, free: 3.609 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001021/0.4566, allocations: 0.5195 MB / 0.503 GB, free: 3.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01544/0.4721, allocations: 7.067 MB / 0.5099 GB, free: 11.95 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001396/0.4722, allocations: 11.95 kB / 0.51 GB, free: 11.94 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005506/0.4727, allocations: 216 kB / 0.5102 GB, free: 11.73 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003371/0.4731, allocations: 258.6 kB / 0.5104 GB, free: 11.47 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01284/0.4859, allocations: 5.952 MB / 0.5162 GB, free: 5.512 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.3078/0.7938, allocations: 21.82 MB / 0.5375 GB, free: 89.84 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.006938/0.8007, allocations: 3.748 MB / 0.5412 GB, free: 89.72 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003514/0.8042, allocations: 2.09 MB / 0.5432 GB, free: 89.68 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00978/0.814, allocations: 5.821 MB / 0.5489 GB, free: 87.38 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.326e-05/0.814, allocations: 61.47 kB / 0.549 GB, free: 87.32 MB / 446.1 MB Notification: Performance of pre-optimization done (n=220): time 3.226e-06/0.814, allocations: 1.062 kB / 0.549 GB, free: 87.32 MB / 446.1 MB Notification: Performance of matching and sorting (n=240): time 0.0193/0.8333, allocations: 10.26 MB / 0.559 GB, free: 83.67 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.325e-05/0.8334, allocations: 78.97 kB / 0.5591 GB, free: 83.61 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00392/0.8373, allocations: 3.164 MB / 0.5622 GB, free: 81.97 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001552/0.8375, allocations: 65.55 kB / 0.5622 GB, free: 81.91 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001163/0.8386, allocations: 2.582 MB / 0.5647 GB, free: 79.97 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000471/0.8391, allocations: 0.8646 MB / 0.5656 GB, free: 79.25 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006858/0.8398, allocations: 0.5652 MB / 0.5661 GB, free: 78.92 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 4.712e-05/0.8398, allocations: 308.9 kB / 0.5664 GB, free: 78.62 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001676/0.8415, allocations: 1.336 MB / 0.5677 GB, free: 77.64 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002017/0.8435, allocations: 2.335 MB / 0.57 GB, free: 74.86 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003903/0.8474, allocations: 3.92 MB / 0.5738 GB, free: 70.46 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.412e-05/0.8474, allocations: 11.84 kB / 0.5739 GB, free: 70.45 MB / 446.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006225/0.8537, allocations: 4.581 MB / 0.5783 GB, free: 65.8 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.004e-05/0.8537, allocations: 24.12 kB / 0.5784 GB, free: 65.78 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.001e-05/0.8537, allocations: 35.94 kB / 0.5784 GB, free: 65.74 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001011/0.8547, allocations: 0.5482 MB / 0.5789 GB, free: 65.18 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002294/0.857, allocations: 0.741 MB / 0.5796 GB, free: 64.43 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006409/0.8634, allocations: 9.918 MB / 0.5893 GB, free: 53.96 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002755/0.8662, allocations: 190.6 kB / 0.5895 GB, free: 53.78 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002/0.8664, allocations: 140 kB / 0.5896 GB, free: 53.64 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.002544/0.8689, allocations: 1.582 MB / 0.5912 GB, free: 52.05 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006418/0.8696, allocations: 365.7 kB / 0.5915 GB, free: 51.69 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005451/0.875, allocations: 3.829 MB / 0.5953 GB, free: 47.82 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.875, allocations: 24 kB / 0.5953 GB, free: 47.8 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.123e-05/0.875, allocations: 8 kB / 0.5953 GB, free: 47.79 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.936e-05/0.8751, allocations: 11.95 kB / 0.5953 GB, free: 47.78 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01543/0.8905, allocations: 8.726 MB / 0.6038 GB, free: 38.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-05/0.8905, allocations: 4.594 kB / 0.6038 GB, free: 38.96 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001647/0.8922, allocations: 415.4 kB / 0.6042 GB, free: 38.56 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001778/0.8939, allocations: 0.7586 MB / 0.605 GB, free: 37.78 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000232/0.8942, allocations: 63.97 kB / 0.605 GB, free: 37.72 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0115/0.9057, allocations: 16.08 MB / 0.6208 GB, free: 20.74 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.102e-06/0.9057, allocations: 11.94 kB / 0.6208 GB, free: 20.73 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008573/0.9143, allocations: 5.632 MB / 0.6263 GB, free: 15 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00217/0.9164, allocations: 0.638 MB / 0.6269 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00111/0.9175, allocations: 67.92 kB / 0.627 GB, free: 14.29 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002299/0.9198, allocations: 135.8 kB / 0.6271 GB, free: 14.16 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004347/0.9203, allocations: 201.5 kB / 0.6273 GB, free: 13.96 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001831/0.9204, allocations: 67.98 kB / 0.6273 GB, free: 13.89 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.003886/0.9243, allocations: 2.139 MB / 0.6294 GB, free: 11.76 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.9243, allocations: 4 kB / 0.6294 GB, free: 11.76 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004262/0.9286, allocations: 0.9921 MB / 0.6304 GB, free: 10.77 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.008761/0.9374, allocations: 6.352 MB / 0.6366 GB, free: 4.301 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.005682/0.943, allocations: 3.884 MB / 0.6404 GB, free: 364 kB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.625e-06/0.943, allocations: 0.5 kB / 0.6404 GB, free: 364 kB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004541/0.9476, allocations: 2.668 MB / 0.643 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005903/0.9535, allocations: 0.9711 MB / 0.6439 GB, free: 12.64 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07551/1.029, allocations: 35.43 MB / 0.6785 GB, free: 7.863 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006024/1.035, allocations: 3.42 MB / 0.6819 GB, free: 4.41 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.003404/1.038, allocations: 0.8035 MB / 0.6827 GB, free: 3.605 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003674/1.042, allocations: 2.116 MB / 0.6847 GB, free: 1.488 MB / 494.1 MB Notification: Performance of SimCode: time 1.152e-06/1.042, allocations: 0 / 0.6847 GB, free: 1.488 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4904/1.532, allocations: 91.88 MB / 0.7745 GB, free: 186.5 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.72/20.25, allocations: 9.625 kB / 0.7745 GB, free: 186.5 MB / 0.545 GB " [Timeout remaining time 640] (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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 31.445532836019993]